Quote:
Originally Posted by fris
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^(/.+\.)html$ [NC]
RewriteCond %{DOCUMENT_ROOT}%1php -f
RewriteRule \.html$ %1php [NC,QSA,L]
|
to explain this.
will rewrite .php files as .html files
example
http://www.domain.com/galleries/01/index.php will work as
http://www.domain.com/galleries/01/index.html
it checks if a real .html file exists with the same name first, then rewrites.
I use this with arylia since a lot of tgp/mgps dont allow .php file extensions.