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. On-Page / Site Optimization
    4. Duplicate content issue in SEOmoz campaign.

    Duplicate content issue in SEOmoz campaign.

    On-Page / Site Optimization
    5 3 686
    • 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.
    • gerardoH
      gerardoH last edited by

      Hi,

      We are running  a campaign for a website in SEOmoz.

      We get a dup content issue warning:

      http://www.oursite.com and http://www.oursite.com/ are being seen as 2 different urls.

      Only difference among 2 urls is the trailing slash at the end of the second url.

      Why is this happening? I was aware of www vs non www but never heard of an issue related to the slash.

      Thanks for your help!

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

        From search engine perspective http://www.oursite.com and http://www.oursite.com/ are not the same thing.

        This problem however is easily fixed, If you are using apache it's a matter of simple config file modification.

        You can refer to http://www.seomoz.org/q/how-can-i-prevent-duplicate-content-between-www-page-com-and-www-page-com for more information.

        Kind regards

        Bojan

        gerardoH 1 Reply Last reply Reply Quote 2
        • gerardoH
          gerardoH @Yanbo last edited by

          So, this code:

          #removes trailing slash
                   RewriteCond %{REQUEST_FILENAME} !-f
                   RewriteCond %{REQUEST_FILENAME} !-d
                   RewriteCond %{HTTP_HOST} !^.localhost$ [NC]
                   RewriteRule ^(.+)/$ http://%{HTTP_HOST}$1 [R=301,L]

          and this code:

          REDIRECT to canonical url

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

          should be added to our .htaccess ?

          Or is it just one of the two code blocks?

          Thanks for your time!

          Yanbo 1 Reply Last reply Reply Quote 0
          • Yanbo
            Yanbo @gerardoH last edited by

            #removes trailing slash
                     RewriteCond %{REQUEST_FILENAME} !-f
                     RewriteCond %{REQUEST_FILENAME} !-d
                     RewriteCond %{HTTP_HOST} !^.localhost$ [NC]
                     RewriteRule ^(.+)/$ http://%{HTTP_HOST}$1 [R=301,L]

            Above code segment removes trailing slashes, second code block is doing redirection from non-www to www.

            In order for above code to work you will need to add two lines above it, telling Apache to enable rewrite module.

            Options +FollowSymlinks
            RewriteEngine on

            So with that combined here is how your .htaccess file should look like

            Options +FollowSymlinks
            RewriteEngine on

            #removes trailing slash
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteCond %{HTTP_HOST} !^.localhost$ [NC]
            RewriteRule ^(.+)/$ http://%{HTTP_HOST}$1 [R=301,L]

            If you are using non-Apache server such as IIS let me know and I send you configuration for it.

            Kind regards

            Bojan

            1 Reply Last reply Reply Quote 2
            • JHSpecialty
              JHSpecialty last edited by

              Nice to know this.  I have had the same issue arise out of nowehre about week maybe two back.  It took awhile but I found the same htaccess quick fix but it seems as if it was an seomoz alogorithim change up.  Robot Roger works his butt off in the basment or so seomoz tells me he  must have found some free time to switch up the campaign errors alogorithim.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Potential duplicate content issue?
                0
                1
                47

              • Duplicate Content Issue in Magento
                Raydon
                Raydon
                0
                5
                343

              • Does this site have a duplicate content issue?
                Dr-Pete
                Dr-Pete
                0
                17
                238

              • Duplicate content list by SEOMOZ
                jws8118
                jws8118
                0
                6
                267

              • Issue: Duplicate Page Content
                JonathanLeplang
                JonathanLeplang
                0
                3
                300

              • Duplicate Content - Potential Issue.
                KeriMorgret
                KeriMorgret
                0
                4
                246

              • Duplicate Page Content Issue
                jforthofer
                jforthofer
                1
                3
                795

              • Duplicate content Issue
                KeriMorgret
                KeriMorgret
                0
                5
                985

              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