View Single Post
Old 09-28-2012, 09:04 PM   PM User | #1
Microbug
New to the CF scene

 
Join Date: Sep 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Microbug is an unknown quantity at this point
Question Help with .php extension removal!

Hi,
This is my first post so sorry if I sound n00bish.
I am trying to make my website so that you can get to http://example.com/example.php through http://example.com/example.
My code works fine (code not mine!), but when I go to a page that should through a 404 error, eg not there, I get a 500 internal server error. Here is my .htaccess code:
Code:
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php [L]

ErrorDocument 403 /403.php
ErrorDocument 404 /404.php
Please help if you can,
Microbug

Last edited by Microbug; 09-29-2012 at 09:17 AM.. Reason: Has now been moved, deleting move request.
Microbug is offline   Reply With Quote