Apache .htaccess / mod_rewrite
Apache .htaccess / mod_rewrite
am 11.07.2007 08:52:32 von Your Best Friend
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
Re: Apache .htaccess / mod_rewrite
am 11.07.2007 18:15:50 von kwan
On Jul 11, 1:52 am, Your Best Friend
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.bkworkspr oducts.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
Re: Apache .htaccess / mod_rewrite
am 12.07.2007 12:51:14 von tcauduro
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
ServerName www.bkworksproducts.info
ServerAlias www.bkworksproducts.info *.www.bkworksproducts.info
DocumentRoot /public_html
ServerName www.carlypattersononline.info
DocumentRoot /public_html/domain2
kwan wrote:
> On Jul 11, 1:52 am, Your Best Friend
> 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.bkworkspr oducts.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
>
Re: Apache .htaccess / mod_rewrite
am 12.07.2007 12:56:28 von tcauduro
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
>
>
> ServerName www.bkworksproducts.info
> ServerAlias www.bkworksproducts.info *.www.bkworksproducts.info
> DocumentRoot /public_html
>
>
>
> ServerName www.carlypattersononline.info
> DocumentRoot /public_html/domain2
>
>
> kwan wrote:
>> On Jul 11, 1:52 am, Your Best Friend
>> 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.bkworkspr oducts.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
>>