Is this duplicate content? How to fix?

by apples
8 replies
  • SEO
  • |
Two URL's


hxxp://ww.site.com/cars/index.html


hxxp://ww.site.com/cars/

The exact same page loads on the screen.

I have tried to do a 301 redirect but it does not work. I think this is because of a silo site structure.

Will I be loosing rankings etc because these to pages are the same but on different url's?
#content #duplicate #fix
  • {{ DiscussionBoard.errors[2328044].message }}
    • Profile picture of the author apples
      Nice link.

      Hmm I already have similar code for a canonical of the main URL.

      How do I add another pages caode as well. I probably need to do it for about 4 pages.

      Do I just copy the whole lot?
      {{ DiscussionBoard.errors[2328236].message }}
      • Profile picture of the author shaktimaan
        Originally Posted by apples View Post

        Nice link.

        Hmm I already have similar code for a canonical of the main URL.

        How do I add another pages caode as well. I probably need to do it for about 4 pages.

        Do I just copy the whole lot?
        No need to add any other page. This code will affect whole site.

        For example if your site is warriorforum.com

        Options +FollowSymLinks
        RewriteEngine On
        #
        # redirect index.htm and index.html to / (do this before non-www to www)
        #
        RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html?\ HTTP/
        RewriteRule ^(.*)index\.html?$ http://www.warriorforum.com/$1 [R=301,L]
        Signature

        Shaktimaan

        {{ DiscussionBoard.errors[2328312].message }}
        • Profile picture of the author apples
          My home page is okay.
          But there are other pages too that need doing.
          ie

          home is okay

          but red widgets
          blue widgets
          green widgets

          can all be view on both URL's...
          {{ DiscussionBoard.errors[2328333].message }}
          • Profile picture of the author shaktimaan
            Originally Posted by apples View Post

            My home page is okay.
            But there are other pages too that need doing.
            ie

            home is okay

            but red widgets
            blue widgets
            green widgets

            can all be view on both URL's...
            yes it will just redirect www.mydomain.com/products/index.html

            to

            www.mydomain.com/products/
            Signature

            Shaktimaan

            {{ DiscussionBoard.errors[2328369].message }}
            • Profile picture of the author apples
              Here is what is in my htaccess file now.
              ----------------------------------------------------------------
              RewriteEngine on
              AddHandler server-parsed .html .htm
              RewriteCond %{HTTP_HOST} ^site.com$ [OR]
              RewriteCond %{HTTP_HOST} ^www.site.com$
              RewriteRule ^index\.html$ "http\:\/\/www\.site\site\-site\-site\.com" [R=301,L]

              # Redirect non-www urls to www
              Options +FollowSymLinks
              RewriteEngine On
              RewriteCond %{HTTP_HOST} ^site.com [NC]
              RewriteRule ^(.*)$ http://www.site.com/$1 [R=301,L]
              RewriteCond %{HTTP_HOST} ^www.site.com/ [NC]
              RewriteRule ^(.*)$ http://www.site.com/$1 [R=301,L]
              RewriteCond %{HTTP_HOST} ^site.com/ [NC]
              RewriteRule ^(.*)$ http://www.site.com/$1 [R=301,L]
              ---------------------------------------------------------------------------


              For example if your site is warriorforum.com

              Options +FollowSymLinks
              RewriteEngine On
              #
              # redirect index.htm and index.html to / (do this before non-www to www)
              #
              RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html?\ HTTP/
              RewriteRule ^(.*)index\.html?$ http://www.warriorforum.com/$1 [R=301,L]


              I want to make a page, www.site.com/article/index.html
              go to www.site.com/article/

              This is a page that is one level below the main URL.
              How do I do this?
              {{ DiscussionBoard.errors[2329889].message }}
              • Profile picture of the author shaktimaan
                Delete everything and use this code. Replace mydomain with yourdomainname and com with your tld.

                Options +FollowSymLinks
                RewriteEngine On
                #
                # redirect index.htm and index.html to / (do this before non-www to www)
                #
                RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html?\ HTTP/
                RewriteRule ^(.*)index\.html?$ http://www.mydomain.com/$1 [R=301,L]
                #
                # redirect mydomain.com -> www.mydomain.com
                #
                RewriteCond %{HTTP_HOST} ^mydomain\.com$ [NC]
                RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]
                Signature

                Shaktimaan

                {{ DiscussionBoard.errors[2330553].message }}
                • Profile picture of the author apples
                  Sweet as, Thanks Man.

                  From what I can gather in the code you just simple use less code to do the same job as before, then did something else to fix the other pages index.html thing.

                  Cheers,

                  Peter

                  P.s. Now I'm curious to see if my SERP changes?
                  {{ DiscussionBoard.errors[2331923].message }}

Trending Topics