[thelist] mod_rewrite question

Shannon Hubbell brundlefly at gmail.com
Tue Aug 19 19:31:18 CDT 2008


I'm trying to do something that should be ridiculously easy but doesn't
appear to be working: redirecting mydomain.com to www.mydomain.com. This is
what I'm using:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^mydomain.com [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [L,R=301]

That's the way it is right now, although I've tried several variations. This
has no effect.

~Shannon

"If you want to tell people the truth, make them laugh, otherwise they'll
kill you." - Oscar Wilde
-----------------------------------------------
blacksundae.shannonhubbell.com
http://blacksundae.shannonhubbell.com/?feed=rss2
http://www.twitter.com/brundlefly
-----------------------------------------------



More information about the thelist mailing list