Not Found Pages are referred by 404, these are the pages which are either deleted/removed by the administrator, or the server can't to find the file path that the user requesting in the URL. Treating with the 404 is very important. Most of the Bloggers treating with them by Creating or Customizing the 404 page. some, redirect to main page or home page. in WordPress Blogs-mostly Blog owners redirect them to sitemap page.
According to Google WebMaster Blog- Not found pages have no effect on your Blog ranking,( Your blog search results), because in world wide web, some pages have to be removed, some have to be edited and is a normal routine. that's why you don't need to be worry about that- but you need to customize the blank page that says 404 Page Not Found.
if you are using Google WebMaster tools, then you might noticed, that Google bot shows the crawl errors (pages that are not found). Pages that did't exist. which hurt Web-masters, in-fact they never hurt your SEO. You need to take proper action on them, because No one want to see just a blank page, that say: page not found.
Redirecting Not Found Pages in Blogger:
Before you just copy and paste codes, i recommend you to read further explanation given in this section.
Go to Blogger Dashboard-then select a Blog-Settings-Search Preference- and then click on Edit at Custom Page Not Found.
Add the Below codes and then Click On Save.
Sorry, the page you are looking for is not found.<script type = "text/javascript">
//Blogger 404 Redirect Powered by TrixKing
BSPNF_redirect = setTimeout(function() {
location.pathname= "/p/sitemap.html"
}, 0);
</script>
The Script will work only if you have created a Sitemap Page in your Blog.
if you want to redirect all not found pages to home page. then replace the code /p/sitemap.html with / (backslash).
sitemap.html is a page, so you can specify a page to which you want to redirect all 404's.
Redirecting Not Found Pages in WordPress:
If you're using WordPress Framework for Blogging, then it's very easy to redirect pages to a specific page.
Here's the code you have to add in 404.PHP File. which will redirect all not found pages to home.
<?php wp_redirect(get_option('home')); ?>Make sure to Replace all codes in 404.PHP File with that Line Only. otherwise it will give you an error.
Means that -your 404 file will contain only that one Line.
The code will redirect all not found pages to home page. if you don't want that- and want to redirect to other page.then replace home with the desire file name, to which you want to redirect all not found pages.
very nice blogging thanks to share very good knowledge.http://backlinkstools.blogspot.com/
ReplyDeletenice sharing... really a helpful post! thanks..
ReplyDeleteTechnoGuidez - all about technology
really really Good Job bro .
ReplyDelete