Saturday, April 12, 2014

Redirect Blogger 404 Error (Page Not Found) To Homepage alphause

Helplogger Home Blog DesignWidgets SEO Menus Po ... Redirect Blogger 404 Error (Page Not Found) To Homepage 7 comments A 404 error page tells you and search engines that a page is not found by displaying a text similar to it "Sorry, the page you were looking for in this blog does not exist.". This may happen because you have changed your URLs over time, either removed a few pages when you overhauled your design or a visitor may have accidentally misspelled an URL inexistent in your blog, so it automatically redirects to the404 error page(page not found). And probably this will not make a good impression on the greatest potential users of our blog. Before the user clicks the back button or close the window/browser's tab, thus leaving our site forever, we may want to redirect 404 error in Blogger to a page, where are chances that the visitor will continue reading our blog. One of the most used methods is the "meta refresh" but the problem with this method is that it breaks navigation (doesn't allow to return back). In this case, the best method is by using Javascript about which I will go in detail below. Redirect Blogger 404 Error with Javascript Go to your Blogger dashboard, select your blog and then toSettings>Search preferences>Custom Page Not Found. Copy and paste the following code inside the empty box: Sorry, the page you're looking for in this blog does not exist. You will be redirected to homepage shortly. The message which is going to be displayed can be modified as you want. If you are willing to redirect your blog 404 error page to another page other than your home page, just replacepathnametohrefand/with the url of your page. And finally, the number 5000 which is the delay expressed in milliseconds, can be changed to other value if this is more convenient. Next thing to do is to Save all changes made in this section and do a little test to check if the code works well. You can verify the 404 error page functionality by adding a custom text at the end of your blog address and after hitting Enter, you should see the error page followed by a redirection after 5 seconds. That's it! Random Posts Ways To Increase Page Impressions and Traffic on Your Blog11/04/2012 - 13 Comments How to Increase Alexa Ranking of your Blog19/10/2013 - 0 Comments Create Horizontal Navigation Menu With Drop Down Submenus Using CSS13/04/2013 - 68 Comments Related Posts: How to Add CSS code To Blogger usin... How to add custom Variable definiti... Understanding the Page Elements of ... What is the difference between padd... How to Use Cookies in Javascript 7 comments: Anonymous 10/20/2013 nice one! Reply Habee Shirzad 10/21/2013 Really Helpful! Tnx! Reply AndroID 11/10/2013 Thanks so much . i have one error with blogger .,but now i fixed them with that html javascript . Thanks :) Reply Sue Faunt 11/10/2013 Thank you! This is exactly what I needed after I deleted a bunch of old posts. Reply Usama Khurshid 11/14/2013 Good post! :) Reply emie madrinan 11/17/2013 thanks i am learning alot Reply Jānis Bedeicis 12/31/2013 Actually i need this but i need other way. Someone??????? Reply Add comment Comment as: Sign out Notify mePublishPreview Privacy Policy| Disclaimer| Terms of Service| Sitemap Back to Top Search Search Follow on Facebook Helplogger Like 2,777 people like Helplogger . Facebook social plugin Follow on Blogger Subscribe via Email Receive Quality Tutorials Straight in your Inbox by submitting your Email below. Submit Or subscribe via RSS Feed Recent Posts How to Add Numbered Page Navigation Widget for Blogger 5 Easy Ways to Improve the SEO of a blog & Boost Traffic What is the difference between padding and margins? Add a Custom jQuery Lightbox To Blogger How to Use Cookies in Javascript Recent Comments Usman Kurniawan not work in my template :( ahmad why i cant use that ? or because my blog its nofollow ?? Anonymous hi admin g i want ask some query about blogging please tell or... JazzyJ Thanks so much! But how do you change the font type of the... Saumya SC Done.........Awesome.........Thanks a lot :) Popular Posts Simple Recent Posts Widget for Blogger/Blogspot Create A Rollover Image Effect (change image on mouseover) Recent Comments Widget For Blogger How to remove Blogger Picture/Image Shadow and Border Hide/Show Widgets /Gadgets in Home/post /static/archive pages in Blogger 5 Like PROTECTED DMCA Like 5

No comments:

Post a Comment