john gruber wrote on this a short while ago:
http://daringfireball.net/2006/05/htaccess_redirection
On 5/26/06, josh <junk@vitamin-j.com> wrote:>
> I''m trying to add a RewriteRule to my .htaccess to remove the www.
> prefix from requests. The following works on its own:
>
> RewriteCond %{HTTP_HOST} www.mysite.com
> RewriteRule (.*) http://mysite.com/$1
>
> But it blows up when I try to add it to my .htaccess file. I''ve
tried
> moving it around, before and after the various Rails-specific rules, but
> I can''t get it to work.
>
> Is it possible? Any suggestions?
>
> Thanks!
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060526/a7b8c09d/attachment.html