Sign in to follow this  
Tony

LiteSpeed Migration Potential Issues

Recommended Posts

You may no longer override php values using a php.ini. You must use a .htaccess file with php_value varname newvalue . For example:

php_value register_globals on

Would turn on register globals.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this