Code: Select all
ErrorDocument 401 /error.php?error=401
ErrorDocument 403 /error.php?error=403
ErrorDocument 404 /error.php?error=404
ErrorDocument 500 /error.php?error=500
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [S=2]
RewriteRule ^(.+)/$ $1.php [QSA,L]
RewriteRule ^us/([A-Za-z]+)$ us.php?state=$11.) When I go to some non existing page like site.com/abc.php it doesn't show my error page for 404 errors. Same for the rest of them.
2.) If I go to site.com/us.php?state=Florida, florida's page comes up but if I go to site.com/us/Florida it doesn't
3.) If I take of the .php from any page it doens't come up it gives me a 404 error (which isn't my 404 error page)
I've been messing with this to long now. I am tried of dealing with this.