Change the URL of a directory (ie. forums.yourdomain.com)

Discussion in 'Site & Server Administration' started by blueparukia, Sep 3, 2007.

  1. #1
    Would I have to modify .htaccess for this? I want to have it so instead of:

    yourdomain.com/forums I have forums.yourdomain.com

    Thanks,

    BP
     
    blueparukia, Sep 3, 2007 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Only if you want to redirect old URLs to the new URLs.
     
    Nintendo, Sep 3, 2007 IP
  3. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #3
    Well, so how do I set it up like that?
     
    blueparukia, Sep 3, 2007 IP
  4. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #4
    I would just create the subdomain
     
    Camay123, Sep 3, 2007 IP
  5. Nintendo

    Nintendo ♬ King of da Wackos ♬

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

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