I, Brian
06-22-2005, 06:53 AM
Rather than show users an error page, I would like to be able to redirect them to the main index page of the site.
I figure there should be a relatively simple way to do this using .htaccess, but I'm not quite sure how.
Any comments or help much appreciated.
Vaines
06-22-2005, 09:09 AM
Well I think that if you can make your own 404 pages, you should just place a redirect on them.
jimmmers
06-22-2005, 09:31 AM
This is what I use:
<meta http-equiv="Refresh"
content="0;URL=http://www.yourdomain.com/whatever">
recipher
06-22-2005, 09:43 AM
ErrorDocument 404 http://www.example.com/404.php
ErrorDocument 403 http://www.example.com/403.php
ErrorDocument 401 http://www.example.com/401.php
etc.
I, Brian
06-22-2005, 03:25 PM
ErrorDocument 404 http://www.example.com/
Lol! I didn't think it would be as easy as that - so much for wildcards and mod_rewrite - many thanks for that, recipher. :)