This is a discussion on Apache .htaccess / mod_rewrite within the Apache Web Server forums, part of the Web Server and Related Forums category; Let me try reposting. I own multiple domains... www.bkworksproducts.info being the main. The root folder for this domain ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Let me try reposting.
I own multiple domains... www.bkworksproducts.info being the main. The root folder for this domain is /home/.../public_html. I also own another domain, www.carlypattersononline.info. Right now, I also have my second domain (carlypatterson...) to head to the same folder. Is there a way, using a .htaccess file, that I can have Apache automatically serve up another folder (public_html/domain2, for example), without showing it in the address bar? Right now, I have it forwarding it completely, I don't want this. -- Thanks, Bryan K BKWorks Products http://www.bkworksproducts.info / http://www.bkworksproducts.org bk@bkworksproducts.com.info To reply, remove .com |
|
|||
|
On Jul 11, 1:52 am, Your Best Friend <b...@bkworksproducts.com.info>
wrote: > Let me try reposting. > I own multiple domains...www.bkworksproducts.infobeing the main. The > root folder for this domain is /home/.../public_html. I also own another > domain,www.carlypattersononline.info. Right now, I also have my second > domain (carlypatterson...) to head to the same folder. Is there a way, > using a .htaccess file, that I can have Apache automatically serve up > another folder (public_html/domain2, for example), without showing it in > the address bar? Right now, I have it forwarding it completely, I don't > want this. > > -- > Thanks, > Bryan K > BKWorks Productshttp://www.bkworksproducts.info/http://www.bkworksproducts.org > b...@bkworksproducts.com.info > To reply, remove .com You can apply the redirect method or rewrite method to your main domain for it to redirect to other domain |
|
|||
|
If you have access to the apache config file you can also setup virtual
hosts that will accomplish this. Looks somthing like this: NameVirtualHost *:80 <VirtualHost *:80> ServerName www.bkworksproducts.info ServerAlias www.bkworksproducts.info *.www.bkworksproducts.info DocumentRoot /public_html </VirtualHost> <VirtualHost *:80> ServerName www.carlypattersononline.info DocumentRoot /public_html/domain2 </VirtualHost> kwan wrote: > On Jul 11, 1:52 am, Your Best Friend <b...@bkworksproducts.com.info> > wrote: >> Let me try reposting. >> I own multiple domains...www.bkworksproducts.infobeing the main. The >> root folder for this domain is /home/.../public_html. I also own another >> domain,www.carlypattersononline.info. Right now, I also have my second >> domain (carlypatterson...) to head to the same folder. Is there a way, >> using a .htaccess file, that I can have Apache automatically serve up >> another folder (public_html/domain2, for example), without showing it in >> the address bar? Right now, I have it forwarding it completely, I don't >> want this. >> >> -- >> Thanks, >> Bryan K >> BKWorks Productshttp://www.bkworksproducts.info/http://www.bkworksproducts.org >> b...@bkworksproducts.com.info >> To reply, remove .com > > You can apply the redirect method or rewrite method to your main > domain for it to redirect to other domain > |
|
|||
|
woops, little mistake in there.
Change the line: ServerAlias www.bkworksproducts.info *.www.bkworksproducts.info To: ServerAlias www.bkworksproducts.info *.bkworksproducts.info tcauduro wrote: > If you have access to the apache config file you can also setup virtual > hosts that will accomplish this. > > Looks somthing like this: > > NameVirtualHost *:80 > > <VirtualHost *:80> > ServerName www.bkworksproducts.info > ServerAlias www.bkworksproducts.info *.www.bkworksproducts.info > DocumentRoot /public_html > </VirtualHost> > > <VirtualHost *:80> > ServerName www.carlypattersononline.info > DocumentRoot /public_html/domain2 > </VirtualHost> > > kwan wrote: >> On Jul 11, 1:52 am, Your Best Friend <b...@bkworksproducts.com.info> >> wrote: >>> Let me try reposting. >>> I own multiple domains...www.bkworksproducts.infobeing the main. The >>> root folder for this domain is /home/.../public_html. I also own another >>> domain,www.carlypattersononline.info. Right now, I also have my second >>> domain (carlypatterson...) to head to the same folder. Is there a way, >>> using a .htaccess file, that I can have Apache automatically serve up >>> another folder (public_html/domain2, for example), without showing it in >>> the address bar? Right now, I have it forwarding it completely, I don't >>> want this. >>> >>> -- >>> Thanks, >>> Bryan K >>> BKWorks >>> Productshttp://www.bkworksproducts.info/http://www.bkworksproducts.org >>> b...@bkworksproducts.com.info >>> To reply, remove .com >> >> You can apply the redirect method or rewrite method to your main >> domain for it to redirect to other domain >> |