301 redirect problems ?

Discussion in 'Apache' started by scriptreseller, Dec 20, 2007.

  1. #1
    Ok

    the url where i want to redirect from looks like this

    http://www.domain.com/folder/index.php?do=/

    and i want to redrect them to the home page of

    http://www.Secanddomain.com


    so to sum up i want all urls on the old domain to redirect to the Home page of the new domain.

    Any help on best way to do this would be great. I was thinking htaccess but carnt get it to work.

    Thanks
     
    scriptreseller, Dec 20, 2007 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    domain.com/.htaccess

    Options +FollowSymLinks +Indexes
    RewriteEngine on
    RewriteBase /
    RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
     
    Nintendo, Dec 21, 2007 IP