SEO How To Question

Discussion in 'Search Engine Optimization' started by dragons5, May 1, 2008.

  1. #1
    Most likely this is something simple, i just cant seem to find the answer.

    Someone told me that my site(s) are pointing two three different domains and so big G counts them as duplicate content. I was told to pick one and use it.

    Example
    www.mysite.com
    www.mysite.com/index.php
    mysite.com

    How would you make all three the same? htaccess?
     
    dragons5, May 1, 2008 IP
  2. Possibility

    Possibility Peon

    Messages:
    350
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The difference between www.yoursite.com and www.yoursite.com/index.php is nonexistent. However, the presence of www or not can make a difference. If you use Google Webmaster Center you can select your preference, but I always use .htaccess

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^(.*)\.yoursite\.com$ [NC]
    RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L]
    Code (markup):
     
    Possibility, May 1, 2008 IP
  3. dragons5

    dragons5 Well-Known Member

    Messages:
    2,940
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    115
    #3
    Thanks for the code. I couldnt remember what this was called.

    are you sure about that? because my index.php page just jumped from PR0 to PR4 and my domain just went from PR3 to PR0
     
    dragons5, May 1, 2008 IP
  4. mcaronan

    mcaronan Peon

    Messages:
    441
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yep.. Put .htaccess together with your website files...
     
    mcaronan, May 1, 2008 IP
  5. dragons5

    dragons5 Well-Known Member

    Messages:
    2,940
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    115
    #5
    I did and I appreciate all the help. it works perfect.
     
    dragons5, May 1, 2008 IP
  6. dhana_space1

    dhana_space1 Peon

    Messages:
    213
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    good, and very important verify them.
    By typing, different combination, Like..

    sitename.com
    www.sitename.com
    sitename.com/index...
    www.sitename.com/index....

    Everything should point to one.
     
    dhana_space1, May 1, 2008 IP
  7. snowbird

    snowbird Notable Member

    Messages:
    3,036
    Likes Received:
    395
    Best Answers:
    0
    Trophy Points:
    290
    #7
    I have seen a few cases where index.php/htm/html has received less PR then the TLD. Use good internal linking practices, and link to your TLD and not index.php.
     
    snowbird, May 1, 2008 IP
  8. dragons5

    dragons5 Well-Known Member

    Messages:
    2,940
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    115
    #8
    yeah. thats what i just did today. hopefully big G finds it in their heart to forgive me :D
     
    dragons5, May 1, 2008 IP
  9. dragons5

    dragons5 Well-Known Member

    Messages:
    2,940
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    115
    #9
    hmmm well i fixed my internal linking to go to the base url:
    e.g. www.mysite.com/

    but how would i fix it when a user goes to /index.php to have them redirected to the base url?

    did i miss something in the htaccess code?
     
    dragons5, May 1, 2008 IP
  10. angilina

    angilina Notable Member

    Messages:
    7,824
    Likes Received:
    186
    Best Answers:
    0
    Trophy Points:
    260
    #10
    Here is what you need to put in .htaccess, in order to redirect /index.php to base url

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php?\ HTTP/
    RewriteRule ^(.*)index\.php?$ http://www.yourdomain.com$1 [R=301,L]
     
    angilina, May 2, 2008 IP