301 redirect to www - can't quite get it right

Topics: Developer Forum
Jun 30, 2010 at 8:45 PM

I just barely installed IIRF. I know it's working. If you go to rebelstudent.com/index54 it will rewrite to default.htm (RewriteRule ^/index54$  /default.htm)

However, my 301 redirect to www doesn't seem to work:

 

RewriteCond %{HTTP_HOST} ^rebelstudent\.com$ [I]

RedirectRule ^(.*)$ http://www.rebelstudent.com/$1 [R=301,L]