hi, ok i tryed with
RedirectMatch 301 ^/(.*) http://.../$1 and it does not worked, in fact this solution loads the site without any css. I am using the htaccess located in the public folder, do i have to configure something else for doing this???? Cheers On 31 jul, 18:40, Tim W <tiwat...@gmail.com> wrote: > No need to use mod_rewrite > > RedirectMatch 301 ^/(.*)http://.../$1 > > On Jul 31, 7:39 pm, fRAnKEnSTEin <shirkav...@gmail.com> 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.crormysite.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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---