Coastal Web
11-28-2005, 05:30 AM
Hello folks, l'm attempting to point several different domains at my current website, just direct them to different sub directories depending on what domain name they typed in to come to my site...
Now l was able to find the following snip on google:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^/*(internet/)?(.*[^/])$ http://%{HTTP_HOST}/$2/ [R=301,L]
RewriteCond %{HTTP_HOST} internet.com
RewriteCond %{REQUEST_URl} !internet/
RewriteRule ^(.*)$ internet/$1 [L]
That l *think* is what l'm looking for, but l don't quite understand everything that's going on here. If anyone would be willing tho break down and explain each of the htaccess code above l would greatly appreciate it!
Samantha Gram
Now l was able to find the following snip on google:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^/*(internet/)?(.*[^/])$ http://%{HTTP_HOST}/$2/ [R=301,L]
RewriteCond %{HTTP_HOST} internet.com
RewriteCond %{REQUEST_URl} !internet/
RewriteRule ^(.*)$ internet/$1 [L]
That l *think* is what l'm looking for, but l don't quite understand everything that's going on here. If anyone would be willing tho break down and explain each of the htaccess code above l would greatly appreciate it!
Samantha Gram