2 dmains 1 server

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-28-2005
Christo
 
Posts: n/a
Default 2 dmains 1 server

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


  #2 (permalink)  
Old 04-29-2005
Christo
 
Posts: n/a
Default Re: 2 dmains 1 server


"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?


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0