Hi
Having struggled for ages wondering why my
ErrorDocument 404 404.html
in my .htaccess file didn't work, my server support people pointed out that:
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
"you are rewriting page names, so 404.html is getting re-written itself and as such you are getting the default 404 page at the fact your 404 page can not be found."
is there a way round this without having to revert to the internal pretty url mechanism?
thanks
Mark
[solved] mod_rewrite for pretty urls overwrites my ErrorDocument 404
-
MarkFresh
[solved] mod_rewrite for pretty urls overwrites my ErrorDocument 404
Last edited by MarkFresh on Fri May 16, 2008 2:01 pm, edited 1 time in total.
-
Ziggywigged
- Power Poster

- Posts: 424
- Joined: Sat Feb 02, 2008 12:42 am
Re: mod_rewrite for pretty urls overwrites my ErrorDocument 404
Use the "Enable Custom 404 Message" option under Site Admin > Global Settings. Hope that helps.
Take a penny, leave a penny.
