 |
Site Admin |
Joined: Tue Mar 05, 2002 4:22 am Posts: 107
|
Question:
Is there a way i can get .html files interpreted as .php
file by putting something in my .htaccess file?
I want to add PHP code to all my .html pages but don't want to rename
them. (people have the .html pages bookmarked, the search engines
know about .html pages, etc...)
Answer:
Create a file called .htaccess in the folder which contains the .html files which contain the PHP code and add this line:
AddType application/x-httpd-php .html
|
|