domain.com and domain.com/index.php

Discussion in 'Google' started by princet, Jun 15, 2007.

  1. #1
    Is there a way using .htaccess to make domain.com/index.php being redirected to domain.com.
    I have tried using
    redirect 301 index.php http://www.domain.com/ but it just causes errors.

    Both versions are indexed by google, and it really bugs me.
     
    princet, Jun 15, 2007 IP
  2. Bagi Zoltán

    Bagi Zoltán Well-Known Member

    Messages:
    364
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #2
    This is the requested code:
     
    Bagi Zoltán, Jun 15, 2007 IP
    princet likes this.
  3. princet

    princet Peon

    Messages:
    455
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks a lot - rep added :)
     
    princet, Jun 15, 2007 IP
  4. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #4
    you must insert the code which is given on reply 2. this will help you to avoid from supp. results and duplicate content problems
     
    trichnosis, Jun 15, 2007 IP