I've seen websites that have .html or .htm as the main file extension but still have server side includes on their pages. I was wondering how one goes about processing .html files as .shtml files or even .php files if that's possible.
Thanks.
I've seen websites that have .html or .htm as the main file extension but still have server side includes on their pages. I was wondering how one goes about processing .html files as .shtml files or even .php files if that's possible.
Thanks.
Their are a couple of different options
The first Comprehensive guide to .htaccess- Enabling SSI Via htaccess is to add a handler to parse html as shtml.
The second which I think is more widely used .htaccess rewrite *.shtml to *.html - CodingForums.com is to use the rewrite engine to modify page extensions.
Both options require you to have access to, or be able to create, the ".htaccess" file on your server.
I hope this helps.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks