Main page of wordpress blogs appear twice

Discussion in 'Google' started by jof, Dec 4, 2006.

  1. #1
    I run a few Word Press blogs and all of them are now showing up in Google as both

    www.domain.com/
    and
    www.domain.com/index.php

    I'm fairly certain this is a new thing. It also appears that the index.php is considered the main result as it shows up first when doing searches. How should I go about fixing this? Just use robot.txt?

    I also get only a trickle of traffic from Google while getting about 1000 uniques a day from Yahoo.
     
    jof, Dec 4, 2006 IP
  2. Austars

    Austars Active Member

    Messages:
    1,437
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    95
    #2
    I think you have to use mod_rewrite or .htaccess, but I have no idea how those work, sorry :(
     
    Austars, Dec 4, 2006 IP
  3. RaginBajin

    RaginBajin Peon

    Messages:
    87
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It is a mod_rewrite problem that you are having with your .htaccess.

    Make sure that mod_rewrite is loaded first and make sure your .htaccess looks like this:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>


    That should take care of your problem. Hopefully I understood the probleme you were having.
     
    RaginBajin, Dec 4, 2006 IP
  4. jof

    jof Peon

    Messages:
    56
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for the info. I did add some anti-hotlink lines to all the .htaccess files last week so maybe that did it. I noticed just now even though all the lines you posted below are in the .htaccess they were at the bottom and there was also a weird character (square box) at the ends of the lines. I've removed them and moved that code to the top now.

    Is there a way to test it's right? Now that Google has the index.php in the engine will it now drop out in due time?

     
    jof, Dec 4, 2006 IP