View Single Post
  #2 (permalink)  
Old 08-31-05, 07:53 AM
Keith's Avatar
Keith Keith is offline
Community Liaison
 
Join Date: Feb 2004
Posts: 1,232
Thanks: 1
Thanked 11 Times in 11 Posts
Upload a .htaccess file that looks like this:
Code:
<Files />
ForceType application/x-httpd-php
</Files>

RewriteEngine on
RewriteBase /

RewriteRule ^.htaccess$ - [F]

RewriteRule ^([A-z,0-9,_,-]+)/?$              $1.php     [QSA]
RewriteRule ^([A-z,0-9,_,-]+)/index\.html$    $1.php     [QSA]
That way, domain.com/whatever, domain.com/whatever/, and domain.com/whatever/index.html will load domain.com/whatever.php. The directory or filename can include upper and lower case alphanumeric characters, underscores, and hyphens.

Last edited by Keith; 08-31-05 at 07:57 AM.
Reply With Quote