View Single Post
Old 01-07-2010, 09:13 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,262
or you could use modrewrite so you could alias index.html as index.php

i do this for tgp submissions that dont allow .php extensions that my gallery program creates.

so http://www.domain.com/index.php would work as http://www.domain.com/index.html

or in my case

http://www.domain.com/galleries/fuc/...sold/index.php

would work as

http://www.domain.com/galleries/fuc/...old/index.html

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]
hope that helps
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote