htaccess redirect ant SEO

Discussion in 'Search Engine Optimization' started by zodiakasxxx, Jan 4, 2010.

  1. #1
    Please tell me if conditions

    RewriteCond %{HTTP_HOST} !^$
    RewriteCond %{HTTP_HOST} !^www\.domenas\.lt$ [NC]
    RewriteRule ^(.*)$ http://www.domenas.lt/$1 [R=301,L]

    is SE friendly.
    Also, should I redirect
    domain.com/ to domain.com/index.php or there is no difference?
     
    zodiakasxxx, Jan 4, 2010 IP
  2. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #2
    What are you trying to accomplish with your first code ?

    Also, I always redirect /index.php to domain domain.com/ to prevent PR and SEO jucie splitting.

    With a redirect all the valuse of /index.php will be focus on the domain instead.
     
    Camay123, Jan 4, 2010 IP
  3. zodiakasxxx

    zodiakasxxx Peon

    Messages:
    128
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    In 1st example I am redirecting http://domain.com to http://[B]www.[/B]domain.com

    My question was actually whitch one from the list should I choose:
    1. Should I redirect domain.com/ to domain.com/index.php
    OR
    2. Should I redirect domain.com/index.php to domain.com/
     
    zodiakasxxx, Jan 5, 2010 IP
  4. zodiakasxxx

    zodiakasxxx Peon

    Messages:
    128
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Can anyone please tell me?
     
    zodiakasxxx, Jan 6, 2010 IP
  5. Coolof

    Coolof Peon

    Messages:
    191
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    i am not sure if u still need it, but u should redirect index.php to /
     
    Coolof, Feb 2, 2010 IP