View Single Post
Old May 4th, 2006, 11:28 PM   #10 (permalink)
brentayers
Registered User
Fresh Surpasser
 
Joined in Aug 2004
9 posts
Gave thanks: 0
Thanked 0 times
I found this online, but it's still not working:

RewriteCond %{HTTP_HOST} !^www\.mysite\.com
RewriteCond %{HTTP_HOST} ([^.]+)\.browse\.mysite\.com [NC]
RewriteRule ^(.*)$ http://www.mysite.com/browse/?loc=%1 [L,R]

It's supposed to work like this: If somebody goes to http://subdirectory.browse.mysite.com they are redirected to http://www.mysite.com/browse/?loc=subdirectory

Do I need to do something special to turn wild cards on for sub domains?
brentayers is offline   Reply With Quote