URL to Custom 404 message
Posted: Thu Mar 09, 2006 6:30 pm
I need to include a link to my custom 404 message in my .htaccess file. What would this url look like to get to the CMSMS custom 400 error message?
Content management as it is meant to be
https://forum.cmsmadesimple.org/
Code: Select all
header('Location:/index.php?page=notfound');Code: Select all
#the rewrite conds and rules about the /cmsms/ installation
#same as sample .htaccess
#that way, CMSms should catch 404 within its rewritten URL scope
#then only, the non CMSms scoped err 404 statement
<Directory> or <DirectoryMatch> or <Location> or <LocationMatch> /only/outside/of/cmsms*
ErrorDocument 404 /some/path/to/404.html
</Directory> or </DirectoryMatch> or </Location> or </LocationMatch>
Not sure if you know it - CMSms has a built in possibility to set your own 404 message (admin panel, site admin > global settings) so you dont need htaccess for that.badhoy wrote: I need to include a link to my custom 404 message in my .htaccess file.
It will not catch the requests which do not include index.php in it. If you try to call something like http://yourcmssite/badurl.php you will not get the custom 404 error of CMS Made Simple but the error site of your server.cyberman wrote: Not sure if you know it - CMSms has a built in possibility to set your own 404 message (admin panel, site admin > global settings) so you dont need htaccess for that.