.htaccess/link redirection help

Discussion in 'Programming' started by Lahori_Dude, Mar 4, 2008.

  1. #1
    I am redirecting my 404/403 traffic with my .htaccess file.

    ErrorDocument 404 http://www.site.com

    Now i want to ask, is it possible redirect the 404 traffic to random links other than one fix link? If yeah, how.
     
    Lahori_Dude, Mar 4, 2008 IP
  2. Vbot

    Vbot Peon

    Messages:
    107
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm not sure if you can do a random links in .htaccess or not. But you can redirect your 404 page to your /404.php and in that page, you can redirect to whatever site you want.
     
    Vbot, Mar 4, 2008 IP
  3. lephron

    lephron Active Member

    Messages:
    204
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    You can redirect based on regular expressions
     
    lephron, Mar 4, 2008 IP