Thread
:
htaccess subdomain & non-www to www redirects.
View Single Post
11-12-2008, 07:19 AM
Brujah
Beer Money Baron
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
Try this maybe:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(.*)\.mydomain\.com [NC]
RewriteRule (.*) http://www.mydomain.com/%1/$1 [R=301,L]
__________________
Free Premium Domain Lists and Tools at
Clickmojo.com
For Sale:
Obscenity.com
Brujah
View Public Profile
Visit Brujah's homepage!
Find More Posts by Brujah