Turn SUB-DOMAIN into SUB-DIRECTORY

Discussion in 'Apache' started by martinvidic, Mar 22, 2008.

  1. #1
    Hello again.

    Does anybody know if there is a way to htaccess a sub.mydomain.com, so that it's used and indexed as the www version of mydomain.com/whatever

    I had to buy a second webspace to add a videoshare scipt to my site, so I pointed a sub domain to the new provider.
    But I would like to use www. mydomain.com/whatever to show the content from this sub domain.

    Can this be done ?

    Thanx
    m.
     
    martinvidic, Mar 22, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Hello,

    Are you trying to display the content of a subdomain that is on a different server, as if it was just a directory of your own?

    Jay
     
    jayshah, Mar 22, 2008 IP
  3. martinvidic

    martinvidic Guest

    Messages:
    182
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    martinvidic, Mar 22, 2008 IP
  4. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #4
    The makes the proccess very complicated, as you would have to 'proxy' the content, I wouldn't advise it. You server's would eat double bandwidth. It would harly work, and would fair to be very difficult to accomplish.

    Jay
     
    jayshah, Mar 22, 2008 IP