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
-
Link in H1 tag?
Hi guys, We're working through a redesign of our product page and are considering the following: http://screencast.com/t/NBSsDGA9vgS3 Currently the product name (including the brand name - Arc'teryx) in this case is included in the H1 and none of the title is linked. You can see this here: http://www.evo.com/synthetic-jackets/arcteryx-atom-lt-hoodie-womens.aspx The firm we're working with is proposing keeping the entire title in the H1 but linking the brand name to the entire brand assortment. My concern is that the brand name is a critical part of the product title and should be text (not a link). Any suggestions? Thanks!
On-Page Optimization | | evoNick
Will0 -
Do links in footers or side bars count less than links in the center of the web page?
do links in footers or side bars count less than links in the center of the web page? How much less if so? I have some articles on my site. Would i get more of a boost in rankings to pages of my site by placing links in the text of my articles on my site to other pages on my site? Thanks mozzers!
On-Page Optimization | | Ron100 -
Link Structure
On my site I have a dropdown menu going across the page at the top to all of my categories on each page, I also have a similar structure going down the side going to the same categories, is this acceptable or would Google count this as double the internal links?
On-Page Optimization | | Palmbourne0 -
Internal link question
Hello, I was wondering if internal links should be full urls? for instance my coder might put "page-title.html" but I was wondering if its better for seo to have it be the full url "http://www.blah-blah.com/page-title.html" thanks in advance..... I love this place!
On-Page Optimization | | Superflys1 -
Too Many On-Page Links error
Hello, I am new to this. The crawl of y website reveals that "Too Many On-Page Links" were found on many pages of the website. However, when I check those pages, not more than 5 links are found- I have not included links outside of the post (sidebar/comments/related posts - are these counted in the crawl report ?). I do use SEO SmartLinks Plugin where in some keywords point to Wordpress Categories but am not sure whether that could be the problem at all. Can someone guide what the issue could be and how to debug ?
On-Page Optimization | | sradhey0 -
Link Building
I have to be doing something wrong. I have been trying to get homes for sale in Casa Grande AZ, and Casa Grande Real Estate to rank well in google. However, I am dropping in rank. What am I doing wrong http://azbestlistings.com/casa-grande-az-real-estate-homes-for-sale-in-casa-grande-az
On-Page Optimization | | sansonj0 -
Nofollow on these internal links?
On an x-cart ecommerce website we have, seomoz has picked up a lot of duplicate content, based on URLs that are different, but are essentially the same page. These come from Fitlers, that allow a page to show only certain colours and styles, reordering page by price etc, and also the page 2, page 3 etc of a category: All the below are '4ft-bedding.html' http://www.textilesdirect.co.uk/store/4ft-Bedding.html?filter=1&value=Pink http://www.textilesdirect.co.uk/store/4ft-Bedding.html?page=2 http://www.textilesdirect.co.uk/store/4ft-Bedding.html?sort=price&view_all=Y I've now changed all these internal links to rel="nofollow" on the a tag. Is that the correct and best way to sort? I might be mistaken on when I did this update and when the last report was ran, but on the SEOmoz crawling report, it still has the above as problem pages. thanks!
On-Page Optimization | | rowleysit-2598920 -
How do I fix a 404 with a 301
I understand the need for fixing 404's but I have yet to have a serious walkthrough of how to set up a 301. From all the talk on the forums and such I'm pretty sure this is easy but I've just never done it before and I could really use a walk through. Thanks
On-Page Optimization | | BenRWoodard1