Canonical Problems
-
Hi Guys, There is so much info out there about canonical issues and 301 redirects I'm not sure what to do about my problem.
Google webmaster says I have over 2000 duplicate page titles. Google is showing most of my pages in duplicate or triplicate url format.
Example:
/store/LOVE_OIL_CARIBBEAN_ROSE//store/LOVE_OIL_CARIBBEAN_ROSE/store/love_oil_caribbean_rose/Im using x-cart pro as my cart.When I look at the source code I see each one having a rel=canonical tag with the exact urls you see above. Can someone give me an example of a redirect that I can put in my .htaccess file that would work site wide?I obviously cant go through and 301 this on a page by page basis. It would take a year.Thank You Tim
-
I am sure you can find the expressing via a Google search, but even easier you can ask your host to do it for you. Most small sites use managed hosting, and most hosts are willing to help. Give them a call or open a help ticket and ask.
-
Thanks Ryan, Funny I never realized that about windows vs. linux. That is very helpful. Now I just need the proper regex expressions. We have tried several in the past and have taken the site down in the process. I think its funny that with all of google technology they still cant determine that a page is a page.
-
Hi Tim.
A few suggestions:
1. ALWAYS use lower case in URLs. 100% always, never break this rule.
Many of us are used to working with Windows where case sensitivity does not matter. Windows offers a character map to basically say the upper case and lower case versions of a letter are equivalent. On a Linux server (which is what most sites run off of) a lower case and upper case letter are two distinct characters.
2. Make a determination of how your web page URL structure will appear and be consistent. I prefer to use a trailing slash "/" to indicate a folder which contains additional pages, and no trailing slash to indicate a web page (i.e. you can't drill down any deeper). mysite.com/page1 <> mysite.com/page1/ These are two distinct URLs.
Can someone give me an example of a redirect that I can put in my .htaccess file that would work site wide?
You are looking for two regex expressions. I am not a regex expert but one expression should remove the trailing slash from any web pages and 301 them to their no-slash equivalent. The second expression I believe uses the NC qualifier to disregard the case sensitivity of the page.
Going forward, try to follow the rules for #1/2 when creating URLs.
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
-
Are there any downsides to using a canonical tag temporarily?
I'm working on redesigning our website. One of the content types has a main archive page (/success-stories) containing all of the success stories (written by graduates of our program). Because we plan to have success stories for other people (non-graduates), I'm using category hierarchies (/success-stories/graduates and success-stories/nonprofits, for example). It will go one level deeper to organize graduates by graduation year (/success-stories/graduates/%year%). I think this will work out well. However, we won't have non-graduate success stories for a little while, probably at least a few weeks, which means that /success-stories and /.../graduates indices will contain the same content for a while. So my question is this: Will it hurt to use a canonical tag that points to /success-stories/graduates as the authority until the main archive page contains more than just graduates? Or would it be better to use a 302 redirect from /success-stories to /.../graduates until more diverse content is added?
Intermediate & Advanced SEO | | bcaples0 -
Pages canonicaled to another appearing before the canonical on google searches
Hello, When I do this google search, this page(amandine roses category) appears before the one it is canonical-ed to(this multi-product version of amandine roses). This happens often with this multi-product template, where they don't rank as well as their category version(that are canonical to the multi-product version). Can someone maybe point us in the right direction on what the issue may be? What can be improved?
Intermediate & Advanced SEO | | globalrose.com0 -
Canonical Tag Question Regarding Two State Pages
Hi Moz Fam! Question... we have two pages for each state. Both pages are used in our PPC campaigns. One of the two state pages is fully optimized for organic search. The page that's optimized for organic has 1,500-2,000 words, the other one has thin content. All the content is unique, nothing duplicate. We call one set of state pages that I optimized my SEO state pages, then the other ones are our PPC state pages. Should I be setting a canonical tag to one of these pages to let Google know which one is the "master" page? (My SEO state page is the master) I've never used them, so I'm not sure what the right answer is for this. Thanks!
Intermediate & Advanced SEO | | LindsayE0 -
What is the difference between link rel="canonical" and meta name="canonical"?
Hi mozzers, I would like to know What is the difference between link rel="canonical" and meta name="canonical"? and is it dangerous to have both of these elements combined together? One of my client's page has the these two elements and kind of bothers me because I only know link rel="canonical" to be relevant to remove duplicates. Thanks!
Intermediate & Advanced SEO | | Ideas-Money-Art0 -
Canonical url issue
Canonical url issue My site https://ladydecosmetic.com on seomoz crawl showing duplicate page title, duplicate page content errors. I have downloaded the error reports csv and checked. From the report, The below url contains duplicate page content.
Intermediate & Advanced SEO | | trixmediainc
https://www.ladydecosmetic.com/unik-colours-lipstick-caribbean-peach-o-27-item-162&category_id=40&brands=66&click=brnd And other duplicate urls as per report are,
https://www.ladydecosmetic.com/unik-colours-lipstick-plum-red-o-14-item-157&category_id=40&click=colorsu&brands=66 https://www.ladydecosmetic.com/unik-colours-lipstick-plum-red-o-14-item-157&category_id=40 https://www.ladydecosmetic.com/unik-colours-lipstick-plum-red-o-14-item-157&category_id=40&brands=66&click=brnd But on every these url(all 4) I have set canonical url. That is the original url and an existing one(not 404). https://www.ladydecosmetic.com/unik-colours-lipstick-caribbean-peach-o-27-item-162&category_id=0 Then how this issues are showing like duplicate page content. Please give me an answer ASAP.0 -
How accurate and quick does Google pick up on canonical tags?
Hey Peeps! I was just wondering what your experiences are in how fast Google will pick up on canonical tags and how often they use the 'strong hint' in stead of leaving it be? I'm based in The Netherlands and for websites with a decent amount of content and links (where Google indexes new content quickly) they pick up on it within 1-2 weeks. So far they've ignored some canonical tags on one of my websites. Perhaps that's because they don't agree with the degree in which the pages are similar. Thanks in advance!
Intermediate & Advanced SEO | | StevenvanVessum0 -
Canonical vs noindex for blog tags
Our blog started to user tags & I know this is bad for Panda, but our product team wants use them for user experience. Should we canonizalize these tags to the original blog URL or noindex them?
Intermediate & Advanced SEO | | nicole.healthline0 -
Canonical Tags & Search Bots
Does anyone know for sure if search engine bots still crawl links on a page whose canonical tags are set to a different page? So in short, would it be similar to a no-index follow? Thanks! -Margarita
Intermediate & Advanced SEO | | MargaritaS0