LiteSpeed Migration Potential Issues


Tony

Recommended Posts

If you're forcing .html files to be parsed with .php the best method is to use


AddType application/x-httpd-php5 .html
[/CODE] This is a very silly way to produce .html to be shown to the users address bar. The best way to accomplish this and support any php configuration and any web server using mod_rewrite would be to rewrite .html -> php script. So for example something like this would work much better: In your .htaccess file you have:
[CODE]
Options +Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^([^.]+).html$ $1.php [L]

I am pretty sure that'll work and any .html will go to the .php equivalent. Now longer any headaches of handlers or anything of that nature.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.