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. Canonicalization issue I cant work out

    Canonicalization issue I cant work out

    Intermediate & Advanced SEO
    4 3 503
    • 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.
    • AdenBrands
      AdenBrands last edited by

      Seo Moz have kindly brought to my attention some canonicalization issues with my site.

      Firstly I've adjust http://capitalalist.com to 301 redirect to http://www.capitalalist.com via htaccess.

      But the crawl has shown for every page in my site the problem below:

      http://www.capitalalist.com/cirque-du-soir

      http://www.capitalalist.com/cirque-du-soir/

      It's just that last / that's causing the problem. But I can't seem to see anyone having the same issue before.

      BTW im using wordpress if that makes a difference.

      Can anyone elaborate on the issue? How would i adjust my htaccess file to redirect a request with a / on the end of it?

      Thanks in advance!

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

        The good folks at Yoast created a Wordpress plugin to deal with this very issue:

        http://yoast.com/wordpress/seo/

        1 Reply Last reply Reply Quote 1
        • JaspalX
          JaspalX last edited by

          Hi Paul, try something like this, but there are many variations of these on the web.

          Posted this just as the yoast post was coming on.

          #add trailing slash
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteCond %{REQUEST_URI} !(.[a-zA-Z0-9]{1,5}|/)$
          RewriteRule (.*)([^/])$ http://www.capitalist.com/$1$2/ [R=301,L]

          add www for non www pages

          RewriteCond %{HTTP_HOST} ^capitalist.com$ [NC]
          RewriteRule ^(.*)$ http://www.capitalist.com/$1 [L,R=301]

          AdenBrands 1 Reply Last reply Reply Quote 2
          • AdenBrands
            AdenBrands @JaspalX last edited by

            Thanks Jassy.

            Exactly what i was looking for.

            Good stuff!

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Have issues about expired domain? How to work on it? How to redirect?
              0
              3
              20

            • Post migration issues - #11 + configuration issue
              0
              1
              136

            • 301 issues
              Bryan_Loconto
              Bryan_Loconto
              0
              3
              72

            • Potential Pagination Issue/ Duplicate content issue
              PeteC12
              PeteC12
              0
              4
              79

            • SEOMoz Shows Issue with Rel="canonical" - Not seeing Issue on Actual Pages
              UnderRugSwept
              UnderRugSwept
              0
              3
              355

            • Domain Issue
              CoreyNorthcutt
              CoreyNorthcutt
              0
              2
              387

            • If I had an issue with a friendly URL module and I lost all my rankings. Will they return now that issue is resolved next time I'm crawled by google?
              Pete79
              Pete79
              0
              3
              226

            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