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
-
Should I use an acronym in my URL?
I know that Google understands various acronyms. Example: If I search for CRM System, it knows i'm searching for a customer relationship management system. However, will it recognize less known acronyms? I have a page geared specifically for SAP data archiving for human capital management systems. For those in the industry, they simply call it HCM. Here is how I view my options: Option #1: www.mywebsite.com/sap-data-archiving/human-capital-management Option #2: www.mywebsite.com/sap-data-archiving/hcm Option #3: www.mywebsite.com/sap-data-archiving/hcm-human-capital-management With option #3, i'm capturing the acronym AND the full phrase. This doesn't make my URL overly long either. Of course, in my content i'll reference both. What does everyone else think about the URL? -Alex
On-Page Optimization | | MeasureEverything0 -
Using keywords in my URL: Doing a redirect to /keyword
My website in "On Page Grade" received an A.Anyway, I only have 1 thing to optimize:_"Use Keywords in your URL__Using your targeted keywords in the URL string adds relevancy to your page for search engine rankings, assists potential visitors identify the topic of your page from the URL, and provides SEO value when used as the anchor text of referring links."_My website is ranking in top10 for a super high competitive keyword and all my others competitors have the keyword on their domain, but not for my URL.Since I can't change my domain for fixing this suggestion, I would like to know what do you think about doing a 301 redirect from / to mydomainname.com/keyword/So the index of my website would be the /keyword.I don't know if this can make a damage to my SERP for the big change ir it would be a great choice.
On-Page Optimization | | estebanseo0 -
301 directs
How do i determine which of my pages have been indexed by Google? and if they haven't been indexed how is this achieved? Also how do I set up a 301 redirect?
On-Page Optimization | | Hardley1110 -
Have you used Reziew or Reevoo?
We are looking into companies to work with for customer reviews and ratings on our e-commerce site. We want our customers to see what others think and we want unique and fresh content on our site for Google to see and the rating star rich snippets in the SERPs. Two companies we're looking at right now are Reziew and Reevoo. Has anyone had any experience working with them? Any advice for choosing one? Or advice in general about choosing a partner for this? Any other companies you recommend?
On-Page Optimization | | dogids0 -
Are there to many internal links here?
This is our main Motorcycle Parts page. In my opinion there are to many links on this page. They have put links to all the top brands after products. Do you think having all these links could be hurting our rankings/ ability for google to crawl the site efficiently? The links are good for navigation, I just think there are way to many there like over 200. Here is the page you can see what i am talking about http://www.rockymountainatvmc.com/s/49/61/Motorcycle-Parts
On-Page Optimization | | DoRM0 -
Appropriate Use of Rel Canonical
Hello, in on page report card , for a kyeword: armadi portafucili blindati URL: http://www.bighunter.net/shop/searchresult.seam?codiceSettoreSel=CACCIA&codiceCategoriaSel=Armadi Blindati&codiceSottoCategoriaSel=Linea Legno DeLuxe&codiceMarcaSel=SILMEC i have a Critical Factor that don't undestand. It 's not ok "appropiate Use of Rel Canoncal, but in my page i have <link href="http://www.bighunter.net/shop/searchresult.seam?codiceSettoreSel=CACCIA&codiceCategoriaSel=Armadi Blindati&codiceSottoCategoriaSel=Linea Legno DeLuxe&codiceMarcaSel=SILMEC" rel="canonical"> and the link is the same of the url . I don't undestand where is the problem . Who can help me? Best Regards Luca
On-Page Optimization | | lbecarelli0 -
Canonical links
My website is relatively new, January. We climbed steadily to 6th for our search term then overnight rocketed to 1st. This only lasted a week and have been stuck at 9th ever since. When I use the SEO Moz tools our site should theoretically be top...I only joined today btw. Anyway in Google webmaster tools I noticed it said I had duplicate title tags, when I checked to see what the pages were- it was my home page! Google also seems to have cached two versions of our homepage, the root domain and the Default.aspx page. Now I have fixed this canonical linking issue today (using canonical link tag and 301s) so time will tell but has anyone got any first hand experience of this issue? Was it a big factor? Thanks!
On-Page Optimization | | SplashBacksNI0 -
Where does link juice flow on a cloaked link?
Hello, I use a wordpress plug in that allows me to display tot he user any link I want from my domain, so it might be like: www.domain.com/gift-card, but the actual link is www.someaffiliatelink/w09fjai;owfoienw <--- and then a bunch of crap after the domain for the affiliate link. It uses the common technique of an iframe to hide the actual url from the user and show the one that I want them to see. What I am wondering is, does link juice in this case flow to my site, or to their site? And also, do you have any comments regarding this type of link cloaking? Thanks. Thanks
On-Page Optimization | | BigJohnson0