Apache .htaccess / mod_rewrite

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


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 07-11-2007
Your Best Friend
 
Posts: n/a
Default Apache .htaccess / mod_rewrite

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
  #2 (permalink)  
Old 07-11-2007
kwan
 
Posts: n/a
Default Re: Apache .htaccess / mod_rewrite

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

  #3 (permalink)  
Old 07-12-2007
tcauduro
 
Posts: n/a
Default Re: Apache .htaccess / mod_rewrite

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
>

  #4 (permalink)  
Old 07-12-2007
tcauduro
 
Posts: n/a
Default Re: Apache .htaccess / mod_rewrite

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

 
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 01:17 PM.


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