So I have four domains
Alice.us
Bob.org
Cindy.com
Cindy.net
(yep the last two have the same name with a different extension)
They all point to my home directory which is where Alice's content resides. So if you put in any of the address you end up looking at the Alice.us content.
Bob's content is at Alice/Bob and Cindy's content is at Alice/Cindy.
What do I need to do so that when you type in Bob.org you go to Alice/Bob (in the file directory) but see in the browser bar Bob.org. The same question regarding Cindy's content.
I have been playing with this for a couple days and only break things when I try. It seems that most tutorial teach me how to cover up the subdirectories but none of them tell me how to totally rewrite the domain. Here is my latest try.
- Code: Select all
RewriteEngine On
RewriteCond %{HTTP_HOST} http://Cindy.com$ [NC]
RewriteCond %{REQUEST_URI} http://Alice.us/Cindy/.*$
RewriteRule ^(.*)$ http://Cindy.com/$1 [L]
When I put http://Cindy.com into my browser all I get is http://Alice.us in response.
I realize that I would need to do this a couple more times , once for each domain, but I'll go one at a time.
I would appreciate any help. thanks