All folders to subdomains?

Discussion in 'Apache' started by talle, Nov 12, 2005.

  1. #1
    Hi.

    I would like to redirect all folders to subdomains with the mod_rewrite.

    http://www.domain.com/folder1 to http://folder1.domain.com

    Thanks.
     
    talle, Nov 12, 2005 IP
  2. talle

    talle Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Please, I need.
     
    talle, Nov 14, 2005 IP
  3. fsmedia

    fsmedia Prominent Member

    Messages:
    5,163
    Likes Received:
    262
    Best Answers:
    0
    Trophy Points:
    390
    #3
    Have you read up on the documentation for mod_rewrite and try it yourself? What have you done so far?
     
    fsmedia, Nov 14, 2005 IP
  4. talle

    talle Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I'm tired to prove sentences in .htaccess. My hosting supplier says to me that it is not possible to make an hidden redirection of subdomains if I do not do it with frames. My knowledge of the English language is very low. I am sad. Help me please.
     
    talle, Nov 19, 2005 IP
  5. talle

    talle Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Please, please, please....
     
    talle, Nov 24, 2005 IP
  6. talle

    talle Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Nobody can help me?:(
     
    talle, Nov 29, 2005 IP
  7. Alexander

    Alexander Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Don't hurry so much...
    Are you sure you really want to redirect folders to subdomains?
    Maybe subdomain requests to folders?
    Do you have this subdomains or plan to create them?
     
    Alexander, Nov 30, 2005 IP
  8. talle

    talle Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    talle, Nov 30, 2005 IP
  9. Alexander

    Alexander Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    It seems to me that mod_rewrite will not help you.

    1. You have domain www. yoursite. com

    2. This is a folder on your hosting which have absolute path like:
    /www/users/hosting/1001/yoursite/

    3. Create here a subfolder aaaa/ or as a full path:
    /www/users/hosting/1001/yoursite/aaaa/

    4. Ask provider to create a subdomain aaa. yoursite. com
    (virtual host) without any redirections
    pointing to /www/users/hosting/1001/yoursite/aaaa/ folder
    if such service is included in your hosting package.

    Only then you can work with www. yoursite. com and
    aaaa. yoursite. com
     
    Alexander, Nov 30, 2005 IP
  10. talle

    talle Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Ok, thanks Alexander.

    My provider has said to me that it will do it manually.

    A greeting.
     
    talle, Dec 6, 2005 IP