here's my dilemna...
i have 4 domains...
for example...
first.net
first.com
second.com
third.com
first.net is the main domain on my shared hosting account...
i need a set of rewrite rules that do the following....
first.com goes silently to first.net/first.com/
second.com goes silently to first.net/second.com/
third.com goes silently to first.net/second.com/
ok... now... subdomains...
gallery.first.net goes to first.net/gallery/
gallery.first.com goes to first.net/first.com/gallery/
gallery.second.com and gallery.third.com go to first.net/second.com/gallery/
info.*.* go to first.net/info/
all i've been able to figure out is how to get first.com to go to first.net/first.com/ as follows:
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?first.net
RewriteCond %{REQUEST_URI} !^/first\.com/
RewriteRule ^(.*)$ /first\.com/$1 [L]
the rest of it is overwhelming for my small brain. please help...