htaccess redirect

Discussion in 'HTML & Website Design' started by fordP, Sep 28, 2007.

  1. #1
    fordP, Sep 28, 2007 IP
  2. Grue

    Grue Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    
    RewriteEngine On
    RewriteRule ^subdomains/forum/httpdocs/(.*) http://forum.mydomain.com/$1
    
    Code (markup):
    This makes use of the mod_rewrite module in apache. I have not tested this code; it might not work. If it does not, it should at least get you going. Try google for mod_rewrite and apache, there's loads of information out there.
     
    Grue, Sep 28, 2007 IP