i have this .htaccess file at the moment
ErrorDocument 400 http://www.techdo.com/
ErrorDocument 401 http://www.techdo.com/
ErrorDocument 403 http://www.techdo.com/
ErrorDocument 404 http://www.techdo.com/
ErrorDocument 500 http://www.techdo.com/
how can i simply redirect all pages / broken links to the root ?
thanks
Bob
I may be wrong but I don’t think there is a way to do this, but I don’t think you should really want to do it either.
Each of these error codes means something different. Only the 404 error refers to a broken link.
I know personally that I hate it when I follow a dead link and I am redirected to the homepage without any information about what is happening.
If your website encounters a 500 server error do you really want to redirect users to the homepage?
There aren’t that many 4xx and 5xx errors to deal with so doing it manuallly isn’t that time consuming.