Custom 404 page not displaying
Posted: Fri Jan 30, 2009 5:00 pm
I've designed couple of custom error pages using one of my regular templates, unattached it from the menu item, and added the following to my .htaccess:
As you can see, I'm using pretty urls. So far so ordinary, as far as I can tell? To check that the page is working, I navigate to http://www.mydomain.org/index.php/error404 and sure enough, there's the page I designed complete with the sarcastic comment designed to irritate & confuse. That's what 404 pages are for, surely?!
However, when I try to go to www.mydomain.org/bla (which doesn't exist), I just get redirected to the site's home page. Have tried this both with the "Enable Custom 404 Message" checkbox in "Site Admin > Global Settings" both ticked and un-ticked and no difference (in neither case do I get the placeholder text I put in for my "Custom 404 message" either!).
What am I doing wrong? I'm guessing there's something really silly that I've overlooked, but can't for the life of me think what it might be.
Me: CMSMS 1.5.2 on Apache 2.2.11 with PHP 5.2.5 and MySQL 5.0.51a.
You: Cleverer than me with a quick & easy solution!
(Also, out of curiosity, what other error pages might be necessary?)
Code: Select all
ErrorDocument 404 http://www.mydomain.org/index.php/error404
ErrorDocument 500 http://www.mydomain.org/index.php/error500
However, when I try to go to www.mydomain.org/bla (which doesn't exist), I just get redirected to the site's home page. Have tried this both with the "Enable Custom 404 Message" checkbox in "Site Admin > Global Settings" both ticked and un-ticked and no difference (in neither case do I get the placeholder text I put in for my "Custom 404 message" either!).
What am I doing wrong? I'm guessing there's something really silly that I've overlooked, but can't for the life of me think what it might be.
Me: CMSMS 1.5.2 on Apache 2.2.11 with PHP 5.2.5 and MySQL 5.0.51a.
You: Cleverer than me with a quick & easy solution!
(Also, out of curiosity, what other error pages might be necessary?)