| Junior Member with 8 posts. THREAD STARTER | | Join Date: Aug 2009 Experience: Intermediate | |
Found a solution, the code to put into the .htacces file is:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php and for multiple file extensions just copy and edit lines 2-4:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
Last edited by Waxbar1; 04-Aug-2009 at 02:30 PM..
|