[thelist] mod_rewrite to a subdomain without www

Nan Harbison nan at nanharbison.com
Tue Jul 29 11:59:22 CDT 2008

Hi All,
Not sure how to do this wirh a subdomain. I want to do a mod_rewrite in case
someone tries to go to http:// <http://www.subdomain.website.us/>
www.subdomain.website.us, but they need to go to:
http://subdomain.website.us <http://subdomain.website.us/> 
I have: 
Options +FollowSymLinks 
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^ <http://www.subdomain.website/.us$>
http://www.subdomain.website\.us$ [NC]
RewriteRule (.*)  <http://subdomain.website.us/$1>
http://subdomain.website.us/$1 [R=301,L]
I think the error is in the 4th line? Have tried tons of variations of this.

More information about the thelist mailing list