How to avoid duplicate content even when using 301 redirections?

How to avoid duplicate content even when using 301 redirections? - 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 avoid duplicate content even when using 301 redirections? error on your web browser. Problem :


I manage a website with tens of thousands of pages named /view.php?id=1234 and so on. Because we wanted it to be more SEO-friendly, a 301 Moved Permanently redirection of each one of them to /view/name-of-the-page-1234/ was created.



This was about 5 years ago, and everything went fine. But recently thousands of pages have been reappering in Google with the old view.php URL! So I have about 20,000 results in common between the redirected and the unredirected URLs, which I am guessing will be sooner or later penalized for duplicated content.



I have been told about disallowing view.php in robots.txt, but I think that wouldn't be a good idea since Google would stop crawling redirections completely.



How could I stop this duplicate content from appearing in searches and avoid being penalized?


Solution :

Use a canonical header in each page, this way if you do accidently have the same content available from multiple URL, the search engines will know which is the real URL of the content.



You have to make sure all 301 redirect are on and implement missing ones.


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

Comments

Popular posts from this blog

What is the SEO impact of multiple redirects that return to the current page after setting a cookie?

How to redirect to any domain [duplicate]

"302 found" for index page bad for SEO?