Redirect old url for search engine purposes.

Discussion in 'Site & Server Administration' started by zapiy, Apr 21, 2008.

  1. #1
    zapiy, Apr 21, 2008 IP
  2. jkwiz

    jkwiz Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can create a .htaccess file in your / directory.

    Edit:

    It needs to be like this (for some reason I wrote it up wrong):

    Redirect /forum/Blah.pl http://www.maturevideogamer.co.uk
    Code (markup):
     
    jkwiz, Apr 21, 2008 IP
  3. zapiy

    zapiy Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have a htaccess file with loads of code already. Where would i put this?

    Cheers
     
    zapiy, Apr 21, 2008 IP
  4. jkwiz

    jkwiz Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Anywhere is fine (Edit: Well kinda), probably at the bottom though.
     
    jkwiz, Apr 21, 2008 IP
  5. zapiy

    zapiy Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Does not work m8, i have searched everywhere and not one site can give me the answer.
     
    zapiy, Apr 21, 2008 IP
  6. zapiy

    zapiy Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I have done this one as my sites say this is best but still no joy.

    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^maturevideogamer\.co\.uk/forum/Blah\.pl [NC]
    RewriteRule ^(.*)$ http://www.maturevideogamer.co.uk/index.php [R=301,L]
     
    zapiy, Apr 21, 2008 IP
  7. manish.chauhan

    manish.chauhan Well-Known Member

    Messages:
    1,682
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    110
    #7
    manish.chauhan, Apr 21, 2008 IP