This is a discussion on 2 dmains 1 server within the Apache Web Server forums, part of the Web Server and Related Forums category; anyway to direct a domain to a different directory using htaccess i dont administer the server its a server provided ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
anyway to direct a domain to a different directory using htaccess i dont
administer the server its a server provided by a hosting company so anywa i can point a specific domain to a specific directory on my server? http://dom1.com > /dir1 http://dom2.com > /dir2 at the minue i have used the companies online control panel and created sub domains www so www.dom1.com > /dir1 www.dom2.com > /dir2 this sucks because it requires the www be entered everytime anyhow any help much appreciated Christo |
|
|||
|
"Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message news:slrnd73g8h.171.davideyeahsure@fogg.onlyforfun .net... > On 2005-04-28, Christo <chris@no> wrote: >> anyway to direct a domain to a different directory using htaccess > > Not using .htaccess. You need to be in the directory before the .htaccess > is processed. One (possible) way could be by using a cgi page that check > the request and rewrite the url sending a redirect to the client, but > that would make the 'http://domain' disappear from the URL, another > solution is by using an external server that receive the requestes and > then act as a proxy. > >> the server its a server provided by a hosting company > > Can't you ask the hosting company to setup the virtual hosts? > >> this sucks because it requires the www be entered everytime > > That's not a problem in Apache, just fix the DNS so it will point to > the server even without the www. then associate an alias to the virtual > host. > > Davide > > -- > Monday. Not just another day; a never ending spiral to Hell. (With a stop > in Cleveland.) > --Mark P. Beckman do you think they would setup the virtual hosts? is it not too much work? |