|
| <prev next> |
[Rails] site redirection: msg#03331RubyonRailsTalk
Hi there, I use this in my .htaccess for redirect URL mysite.cr to www.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.cr or 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 rubyonrails-talk@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
|
|
||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |