No need to use mod_rewrite RedirectMatch 301 ^/(.*) http://.../$1
On Jul 31, 7:39 pm, fRAnKEnSTEin <[email protected]> wrote: > Hi there, > > I use this in my .htaccess for redirect URL mysite.cr towww.mysite.cr. > It redirects fine. > > ... > ... > ... > RewriteEngine On > RewriteCond %{HTTP_HOST} ^mysite.cr [NC] > RewriteRule ^(.*)$http://www.mysite.cr/$1[L,R=301] > > But the first URL(the one that does not has www) stays without www > even when it redircets properly. What i am trying to do is that no > matter what URL somebody use(www.mysite.cror mysite.cr), i want the > final URL always to have www at the beginig. > > Any idea? > > Cheers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

