How to correctly handle redirect after site facelift

How to correctly handle redirect after site facelift - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the How to correctly handle redirect after site facelift error on your web browser. Problem :


I recently updated our site taking it from a multi-page site to a single page site.



The problem now is that when the site is searched in say Google, it displays the site as well as the indexed pages. So if a user clicks say our "About" page, it takes them to our now outdated material.



I am hoping to get some guidance on how to properly handle this.



I figure the first step is to now setup a robots.txt on our new index page to tell the engines not to crawl beyond index.php.



But in the meantime, how do I handle the fact that when searching our site on Google we may still have users who try to click on sub-page links?



Should I simply setup redirects while waiting for the engines to update?



And if so, do I need to setup redirects on each page using PHP or is this something I would take care of on our sites control panel?



I am not very familiar with redirects...



Any help is appreciated!


Solution :

The best thing to do is to use 301 redirects in your .htaccess file. Essentially Google or any browser looking for a page (for this example, the About Us page) gets redirected to the page you want them to see. This is done instantly really, and requires no "You are being redirected, please stand by" messages.



The code is:



RewriteRule ^name-of-old-page/$          /name-of-new-page/         [R=301,L]

We hope that this article has helped you resolve the php, redirects, sitemap error in your web browsers. Enjoy browsing the internet uninterrupted!

Comments

Popular posts from this blog

How to redirect to any domain [duplicate]

"302 found" for index page bad for SEO?

Create redirect from url like www.example.us/?p=100&option=