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
-
Subdir vs Subdomain vs ccTLD
Hello Community, I'm running a .com website with India targetted audience on Webmastertools from 2 years. Now I want to start a separate zone for US. .us domain is not available for my domain right now. So what is your suggestion for best results: 1. domain/us (Subdirectory) 2. us.domain (Subdomain) 3. new domain (separate website) I think Subdomain can work great if I will pass place a header link sitewide. Or that can reduce authority as mentioned on few blogs? Let me know your thoughts
On-Page Optimization | | sah900 -
Alot of 302 Redirects, what to do?
I'm currently auditing my companies website, and we encountered thousands of 302 redirects. The 302 pages are products page, which is a question and answer module at the bottom of each products page. What best practice should I do to get rid of the 302 redirects? add those pages to the .robots.txt? Or do individually and add a no index? This would help boost our rankings up correct?
On-Page Optimization | | petmkt0 -
Canonical URL Category and Tags
Hello, I would like to know that I want to use both category and tags in my blog StylishMahi. If I index both category and tags, should I use canonical URL tag to pass referring to main category. As I want more my categories in SERP results ranking higher? I have also attached a picture. Can someone please confirm? Photo by Moz ZigdWMx
On-Page Optimization | | PratapSingh0 -
Too many page links warning... but each link has canonical back to main page? Is my page OK?
The Moz crawl warns me many of my pages have too many links, like this page http://www.webjobz.com/jobs/industry/Accounting ...... has 269 links but many of the links are like this /jobs/jobtitles/Accounting?k=&w=3&hiddenLocationID=463170&depth=2 and are used to refine search criteria.... when you click on those links they all have a canonical link back to http://www.webjobz.com/jobs/industry/Accounting Is my page being punished for this? Do I have to put "no follow" tags on every link I do not want the bots to follow and if I do so is Roger (moz bot) not going to count this as a link?
On-Page Optimization | | Webjobz0 -
Footer-links (navigation)
I want to put navigation links in my footer. I watched the (distilled) whiteboard friday video saying it can be a penalty. How are links in the footer different from links in the navigation. Why don't you get "hit" for putting the word "Real Estate Listings" in the navigation menu? It appears on every one of the 30k pages. I don't get why the links in the footer would have a negative effect if the links in the navigation don't. My example is a real estate website. When people are browsing properties (30k), it is convenient that at the end of the page there is a navigation of areas. I could put the navigation on the sidebar but that would be in essence, the same thing. A wordpress site would dynamically include that sidebar on every page.
On-Page Optimization | | JML11790 -
The "100 links/page recommendation" - Do Duplicate Links Count?
We have way too many links on our homepage. The PageRank Link Juice Calculator (www.ecreativeim.com/pagerank-link-juice-calculator.php) counts them to 300. But all of them are not unique, that is some links point to the same URL. So my question: does the "100 links/page recommendation" refer to all anchors on the page or only to unique link target URLs? I know "100" is just a standard recommendation.
On-Page Optimization | | TalkInThePark0 -
Too many links on page -- how to fix
We are getting reports that there are too many links on most of the pages in one of the sites we manage. Not just a few too many... 275 (versus <100 that is the target). The entire site is built with a very heavy global navigation, which contains a lot of links -- so while the users don't see all of that, Google does. Short of re-architecting the site, can you suggest ways to provide site navigation that don't violate this rule?
On-Page Optimization | | novellseo2 -
Crazy # of Inbound Links
using open site explorer I see that my pages have a ridiculous amount of inbound links. I assume it is recording the same link from every page of the website through the menu somehow? Like the about us page has 200+ inbound links!!! ahh.. Is there a way to prevent this besides like.. no-following your own menu? Or is that what your supposed to do.. ~~Confused.
On-Page Optimization | | Earthsaver0