The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. Canonical Problems

    Canonical Problems

    Intermediate & Advanced SEO
    4 2 562
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • fasctimseo
      fasctimseo last edited by

      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

      1 Reply Last reply Reply Quote 0
      • RyanKent
        RyanKent last edited by

        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.

        fasctimseo 1 Reply Last reply Reply Quote 0
        • fasctimseo
          fasctimseo @RyanKent last edited by

          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.

          RyanKent 1 Reply Last reply Reply Quote 0
          • RyanKent
            RyanKent @fasctimseo last edited by

            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.

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • Canonicals question ref canonicals pointing to redundant urls
              AndyMacLean
              AndyMacLean
              0
              4
              99

            • What is better? No canonical or two canonicals to different pages?
              WilliamKammer
              WilliamKammer
              0
              2
              102

            • Is it a problem that Google's index shows paginated page urls, even with canonical tags in place?
              94501
              94501
              0
              3
              249

            • Urgent problem - multilingual website title tag and meta description problem
              serp-eesti
              serp-eesti
              0
              7
              2.5k

            • Rel Canonical Link on the Canonical Page
              Stew222
              Stew222
              0
              4
              248

            • Canonical tag
              KarlBantleman
              KarlBantleman
              0
              11
              315

            • How to fix a canonical problem with no htaccess?
              bronxpad
              bronxpad
              0
              3
              757

            • To "Rel canon" or not to "Rel canon" that is the question
              Dr-Pete
              Dr-Pete
              0
              10
              728

            Get started with Moz Pro!

            Unlock the power of advanced SEO tools and data-driven insights.

            Start my free trial
            Products
            • Moz Pro
            • Moz Local
            • Moz API
            • Moz Data
            • STAT
            • Product Updates
            Moz Solutions
            • SMB Solutions
            • Agency Solutions
            • Enterprise Solutions
            • Digital Marketers
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation Checker
            • MozBar Extension
            • MozCast
            Resources
            • Blog
            • SEO Learning Center
            • Help Hub
            • Beginner's Guide to SEO
            • How-to Guides
            • Moz Academy
            • API Docs
            About Moz
            • About
            • Team
            • Careers
            • Contact
            Why Moz
            • Case Studies
            • Testimonials
            Get Involved
            • Become an Affiliate
            • MozCon
            • Webinars
            • Practical Marketer Series
            • MozPod
            Connect with us

            Contact the Help team

            Join our newsletter
            Moz logo
            © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy