: Need a suggestion on how to resolve two pages containing duplicate content I need a small suggestion about this article regarding my site: http://moz.com/learn/seo/duplicate-content I find that I
I need a small suggestion about this article regarding my site:
moz.com/learn/seo/duplicate-content
I find that I have 2 pages with the same content and one is using a query string like: example.com/page=delhi and the other isn't: example.com/page/delhi/
I am thinking I should make all my URLs to be like example.com/page-delhi/, but the issue is I already have two duplicate pages as a result of these, so I need some suggestions on what to do.
If I redirect example.com/page=delhi using a 301 redirect to the new URL structure site.com/page-delhi/, would that be a good idea? Would I need to do anything else to avoid duplicate content?
More posts by @Jessie594
3 Comments
Sorted by latest first Latest Oldest Best
301 redirection of websites is a great idea to perform. It is suggested to do its asap because if Google bots crawls the both, they may penalize it. So, beware of them. canonicalization will also help.
Using redirection (301) is a good solution. Another solution is setting a canonical link. You can redirect or use canonical links on as many pages to one page as you want. Search engines will pick up your changes.
You are correct, you use the 301 header for this. The amount of pages that end up redirected doesn't matter. If you have more than one identical pages, redirect-301 them all to one.
An .htaccess file would be something along these lines:
RewriteCond %{REQUEST_URI} ^/page/.*
RewriteRule ^page/(.*) /page- [L,R=301]
The reason everybody says you have to 301 it, is because it tells SE that the same contact is been permanently moved to the new location. They will drop the old URL(s), and index the new URL, but keep the gained SEO score.
.htaccess is the fastest way to use, PHP hasn't been init yet, but you can use PHP as well:
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: /page-new-url" );
And another suggestion, use canonical in your HTML, this tells SE the preferred location used for the information:
<link rel="canonical" href="http://www.eaxmpl.com/page-something" />
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.