Please check my .htaccess

Discussion in 'Search Engine Optimization' started by onebadbetty, Mar 15, 2010.

  1. #1
    Hey all,

    I know there are several .htaccess experts on this board. I would really appreciate it if one of you wizards would check that my .htaccess mod_rewrites are correct (I'm self taught).

    I'm trying to solve the old canonicalisation issues

    RewriteEngine on
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^mydomain.com [NC]
    RewriteRule (.*) http://www.mydomain.com/$1 [R=301]
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
    RewriteRule ^index\.html$ http://www.mydomain.com/ [R=301,L]


    Muchos appreciated :)

    OBB
     
    onebadbetty, Mar 15, 2010 IP
  2. flanagan

    flanagan Banned

    Messages:
    1,544
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    100
    Digital Goods:
    2
    #2
    What is .htaccess ? could you for what its use
     
    flanagan, Mar 15, 2010 IP
  3. Navaro

    Navaro Peon

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Navaro, Mar 15, 2010 IP