As we know, that some time users input wrong URL, or miss some thing from URL. So that time Apache redirect them to 404 error stating that page not found on this server.
Now the good and very easy way to remove such error and show your users a valid and fine tuned page, Apache give us a opportunity to rewrite that page.
So now you can show a page to users, with some good contents to not lose that user.
Create a .htaccess file and write the following there:
ErrorDocument 404 http://site.com/404error.html
You can change your paths. Now you have a page 404error.html(you can create it in any language PHP etc). Now write whatever you want in 404error.html and show that to user. Save it and place it in the root directory of your site. You can dress up 404error.html to make sure that user will come back or click any link there to your site. OR you can provide search area there. OR any nice page with nice graphics and contents and telling them, that the thing they are looking for can be found in HOME page and give a link to home page. Its all up to you that how you make this page.
I was just giving some tips.
ANL
No comments:
Post a Comment