htaccess in Linux server is used for rewriting the URL & also used for redirecting to a Pre-defined error page(404 error page) when there is no file or page in the site.
Here is the rule for redirecting to Error page(404 page -- i.e. Page Not found)
Ex;- ErrorDocument 404 http://www.yoursitename.com/error404.php
Ex:- ErrorDocument 404 http://www.yoursitename.com/error404.html
we can define any filename for redirecting, in the above example, I've given an error404.php or error404.html as examples
No comments:
Post a Comment