Correct use of Canonical link vs 301 redirect
-
Hi All,
Seeking yet more advice.
SEOMOZ tools have told me I have duplicate content on one of my sites and I am keen to clean this up. I am not to familiar with the following so thought I would ask.
The duplicate content is shown on :
Obviously I only see index.html when I check the code so what is the best method of resolving the duplicate content, Canonical or 301?
Can you give me an example
Thanks all
-
Thanks guys, exactly what I was looking for
-
Wayne,
A 301 is always preferred over a canonical when given the choice. You would use a canonical if you did not have access to your web server and did not have a better option.
The method of redirect depends on the hardware and software of your server. The most common shared servers use Apache and cPanel where there is a Redirect tool which allows you to perform this redirect. The Redirect tool writes the htaccess code for you.
You are also welcome to use the code Sean shared but if you have not modified your file before please understand any mistake can make your site inaccessible. Always back up the current file, make the change, and thoroughly test it.
-
Use a 301 Redirect with .htaccess. Use the following code in your 'htaccess file:
Options +FollowSymLinks
RewriteCond %{THE_REQUEST} ^./index.html
RewriteRule ^(.)index.html$ http://www.yoursite.com/$1 [R=301,L]
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
SEO and auto login with redirect
Hi, we have a site where user we know (cookie-based) is automatic redirected to private internal page. Unknown guests are staying on the page google search sent them. The redirect is done with a 302 to the private page. When I examine organic search and landing pages in analytics I see that more than 50% of the landing pages are private pages (inaccessible for the google-bot). This is because analytics does not register the redirecting page, just the target page. Is this harmful to SEO that so many users are redirected to other pages, or is this data not available to google-bot. The google bots is not redirect since they do not have the correct credentials. Do chrome or analytics send such data back to Google search? Is better to manipulate analytics page track call to use the address of the redirecting page? Or maybe skip to redirect, and just render the private content on the orginal page?
On-Page Optimization | | Morten.Berg0 -
What word should I use in my URL for my blog
Should I use the word "blog" in my sub folder as in : http://www.mybusiness.com/blog or should I use http://www.mybusiness.com/news. Is there a difference for when my site is crawled. I understand that a blog works a little differently. Can someone explain the basics?
On-Page Optimization | | graemesanderson0 -
I'm using Canonical URL but still receiving message - Appropriate Use of Rel Canonical
Hello, I checked my site and it looks like everything is setup correctly for canonical url but I keep getting the message that it's not. Am I doing something wrong? SORRY I FIGURED IT OUT! THANK YOU! HOW DO I DELETE THIS?
On-Page Optimization | | seohlp440 -
Internal Links: Navigation Bar vs. Body Text
Hello. I have a page on our site that is especially popular and has many inbound links. This page has the same site navigation buttons (at the top) as every other page on the site. Do these site navigation buttons pass along link juice to other pages in the same way that an internal link would elsewhere on the page? Thank you!
On-Page Optimization | | nyc-seo0 -
Related Items Links
Hi, If an item page has 'related items' links and 'you may also like' links - and both those are essentially the same links, doesn't it make sense to only have one set?
On-Page Optimization | | Freelancer130 -
301 Problem
Hi Guys, Just have a small problem with a htaccess 301 redirect. I would like to 301: www.old-domain.com & old-domain.com to www.new-domain.com. The site is exactly the same with the same directory structure so i would also like all the subpages to work. Eg: www.old-domain.com/folder/page & old-domain.com/folder/page to www.new-domain.com/folder/page Many thanks
On-Page Optimization | | MSSTORAGE0 -
Main page link reduction
I am in the process of reducing the number of internal links from the homepage with the assumption that the more links I have the more "juice" goes to internal pages I have two options since many of the links are costumer service related 1. create one link that leads to a costumer service page and place all the links their. 2. get all those links on the main page as nofollow links. what are your opinions
On-Page Optimization | | ciznerguy0 -
Www redirect
I get the following message when I try to start a new campaign. "We have detected that the domain www.shewula.nl and the domain shewula.nl both respond to web requests and do not redirect" In the q&a I found answers to this problem and tried to fix it. No success yet. This is what I have in my old ht.access file: RewriteCond %{HTTP_HOST} ^www.shewula.nl$ RewriteCond %{REQUEST_URI} !^/STICHTING_SHEWULA/ RewriteRule (.*) /STICHTING_SHEWULA/$1 [last] RewriteCond %{HTTP_HOST} ^shewula.nl$ RewriteCond %{REQUEST_URI} !^/STICHTING_SHEWULA/ RewriteRule (.*) /STICHTING_SHEWULA/$1 [last] I changed it to ( got it from the answers 😞 RewriteCond %{HTTP_HOST} ^shewula.nl
On-Page Optimization | | thomasfasting
RewriteRule (.*) http://www.shewula.nl/$1 [R=301,L] This gave me a 500 internal error in the server header checker tool. Does anybody know how I can fix this? The website is in a folder in the root of my other website www.fastingfotografie.nl Could this give me a problem? Thanks. Thomas0