View Full Version : anyway to parse .html as .php?

11-24-2003, 03:00 PM
Hi all,

A lot of people going to my website are visiting the old .html address'. So I wondered if there was anyway to make it so if they visited say medical.html, it would automaticly send them to medical.php? You could just use redirects, I know, but I wondered if you could parse .html files like this?


11-24-2003, 03:08 PM
You could add this to .htaccess :

AddType application/x-httpd-php .html

This will cause the .html files to be parsed as php files. The drawback to doing this is that it will slow everything down because it sends all .html pages through the php parser, even if they contain no php.

11-24-2003, 04:13 PM
If you're already established using .html's then I would continue to use them and set up htaccess so they get parsed as Westech said.

This will save you from any PR problems that could arise from changing to a php extension.

11-25-2003, 09:17 AM
Hmm..ok, thanks guys:)