Help need ! Some how i have a bad feeling about how i redirected my site using 301

Discussion in 'Search Engine Optimization' started by maineexista, Aug 10, 2009.

  1. #1
    ok, here it is:

    i have two domains www.mermin-auto.ro and www.mermin.ro,

    mermin-auto.ro is redirected trough 301to www.mermin.ro
    and mermin.ro is redirected trough 301 to www.mermin.ro

    now i've discovered i have another page to redirect www.mermin.ro/shop (which i think is the ussual index) what should i do and how can i do it using same 301 redirect but keep in mynd that i already have this lines :

    RewriteCond %{HTTP_HOST} ^mermin.ro

    RewriteRule (.*) http://www.mermin.ro/$1 [R=301,L]

    hope i made my self clear,
    thanks you fr your time ;)
     
    maineexista, Aug 10, 2009 IP
  2. fredzog

    fredzog Peon

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Your problem is in the line:
    RewriteCond %{HTTP_HOST} ^mermin.ro
    which excludes mermin-auto.ro and www.mermin-auto.ro, but everything else is fine.

    You can modify the line:
    RewriteCond %{HTTP_HOST} ^mermin.*ro
    which should include mermin.ro, mermin-auto.ro, merminfoobarauto.ro etc but I haven't tested it.
     
    fredzog, Aug 10, 2009 IP
  3. maineexista

    maineexista Peon

    Messages:
    317
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i rather try with : RewriteCond %{HTTP_HOST} ^mermin*.ro, but i think i should wait for a better idea, thanks
     
    maineexista, Aug 10, 2009 IP
  4. maineexista

    maineexista Peon

    Messages:
    317
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks for the tips ;)
     
    maineexista, Aug 12, 2009 IP
  5. maineexista

    maineexista Peon

    Messages:
    317
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    got it ! :D
     
    maineexista, Aug 21, 2009 IP