/index.htm is a PR4 but without that its 0? help! anyone!

Discussion in 'Search Engine Optimization' started by Tadema, Apr 10, 2006.

  1. #1
    Tadema, Apr 10, 2006 IP
  2. xtreme fever

    xtreme fever Active Member

    Messages:
    472
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    95
    #2
    xtreme fever, Apr 10, 2006 IP
  3. spainexpat

    spainexpat Peon

    Messages:
    125
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You could use mod-rewrite to ensure you redirect everything to one or the other.
     
    spainexpat, Apr 10, 2006 IP
  4. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Add the following code to your .htaccess file:

    RewriteEngine on
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.htm\ HTTP/ 
    RewriteRule ^index\.htm$ http://www.domain.co.uk [R=301,L] 
    Code (markup):
     
    mad4, Apr 10, 2006 IP
    spainexpat and kkibak like this.
  5. spainexpat

    spainexpat Peon

    Messages:
    125
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    There ya go, nice one mad4.
     
    spainexpat, Apr 10, 2006 IP
  6. digital1

    digital1 Well-Known Member

    Messages:
    517
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    125
    #6
    Cheers mad4, your code worked a treat.
     
    digital1, Apr 10, 2006 IP
  7. malekov

    malekov Peon

    Messages:
    54
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    nice job :)

    with a 301 redirection it will just work fine :)
     
    malekov, Apr 10, 2006 IP
  8. trueman

    trueman Well-Known Member

    Messages:
    554
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #8
    Properly all link from you site pages pointing to index.htm and not to you main site.

    Just update all you link to point to you site url without the index.htm (all internal and external links)
     
    trueman, Apr 11, 2006 IP
  9. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Some people may struggle to get all their external incoming links altered to a different url. :rolleyes:
     
    mad4, Apr 11, 2006 IP
  10. Tadema

    Tadema Peon

    Messages:
    16
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    thanks guys.. will try that out.
     
    Tadema, Apr 12, 2006 IP
  11. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #11
    The best way to go will be the .HTACCESS solution provided above.
    That way the PR will flow to just one version of your site, no matter what you link to. OR what others linking externally link to.
    regards
    jeet
     
    JEET, Apr 12, 2006 IP