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
-
Redirect and Redirect Error in Moz Crawl
Hello, We have a wordpress blog attached to our magento website located at domain.co.uk/blog/ Moz was coming back showing we had multiple page versions on show (http and https) So i updated the htaccess file to what is below. This has fixed most of the errors, however the homepage is being a little tricky. Moz is now saying that the page is redirecting and redirecting again http://www.domain.co.uk/blog to
On-Page Optimization | | ATP
http://www.domain.co.uk/blog/ to
https://www.domain.co.uk/blog/ BEGIN WordPress <ifmodule mod_rewrite.c="">RewriteEngine On
RewriteBase /blog/</ifmodule> RewriteCond %{HTTPS} !=on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L] END WordPress Within wordpress settings the urls are set up as follows Wordpress Address URL: https://www.domain.co.uk/blog Site Address URL: https://www.domain.co.uk/blog i tried to add a trailing / to these but it gets automatically removed. So i am assuming that wordpress is serving up https://www.domain.co.uk/blog **RewriteBase /blog/ **is re-directing it to / then my https rewrite is re-directing it again I am not sure where exactly to fix this, could anybody advise? Many thanks,0 -
Temporary Redirect pages
Hi, Temporary Redirect pages example when a non member goes to http://www.Somesite.com/detail/Username-Mike As he clicks the user names the user is directed to the login page http://www.Somesite.com/user/login We have 50K user accounts and 50K pages of content and each page has an option to comment and to comment user should be a member Moz campaing i get these 1,000's of links in Temporary Redirect page What is the action i can take thanks
On-Page Optimization | | mtthompsons0 -
I am optimizing title tags and was wondering if it makes a difference if I use "commas" in between keywords that are synonyms or should I use "and" instead?
For example: "pants, trousers at pants.com" or "pants and trousers at pants.com".
On-Page Optimization | | EcomLkwd0 -
Product links on homepage
Hi, I;m wondering if it really does aid SEO or even hinder it now to have lists of top selling products as links on the base of each page. This was recommended to us sometime ago by a consultant so we did it but is it outdated? I'm concerned it may penalise our pages now by creating too many links? opinions appreciated. wwww.gourmetdirect.com and scroll down to see what I mean
On-Page Optimization | | GourmetDirect0 -
Issue: Rel Canonical
My SEO Report shows issues: Rel Canonical I have a wordpress website each page has its content but I'm getting errors from my SEOMOZ report. I instaledl the yoast plug in to fix the issue but I'm still getting 29 errors. Wordpress 3.4.1
On-Page Optimization | | mobiledudes0 -
Do I need canonical link on target page?
I've placed in my head tag on duplicate content pages, but do i need to place it on the target page such as http://www.example.com/index.html too?
On-Page Optimization | | CaliB0 -
301 Dilemma
Hi Everyone, I have written new content for a product page and at the same time put it on a different URL: example.com/product The previous URL was something like this: example.com/brand/type/product (PR4) So all in all this is an easy enough 301, however, we also have a shop page for this product: example.com/shop/brand/type/product_shoppage.php (PR4) Should I also do a 301 from this page to the new page?: example.com/product Can you have two 301 redirects like what I am proposing? Kind Regards,
On-Page Optimization | | Paul780 -
Google VS Yahoo VS Bing & Onpage Optimization in 2011
I was just wondering if someone could point out to me any known differences between these three search engines. I feel like i have been spending a lot of time optimizing for google, but don't have much of an idea of how to optimize for yahoo or bing. Do you have any up-to date article links or tips/advice?
On-Page Optimization | | adriandg0