-
Step 1
Open your .htaccess file for editing. This file will be in the same directory as your web files that you want to use. If the file does not exist, you can create it using any plain text editor.
-
Step 2
Add a line to the .htaccess file as follows:
AddHandler x-httpd-php .xxx
Replace the xxx in that line with the file extension you want to use for your php files. -
Step 3
Save the .htaccess file.
-
Step 4
Re-start your web server. All files with the .xxx ending that you provided that are accessed through the web server will now be processed through the PHP processor before being delivered by the web server.









