View Single Post
Old 10-20-2009, 12:11 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,588
Quote:
Originally Posted by fris View Post
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.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


My Cam Feeds Script / Gallery Scraper / WPXXX Theme / Free Templates
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote