views:

91

answers:

2

I'm using a multisite setup in subfolders, everything words fine except the non-www to www redirection.

I got it working with no issues for the main domain, but I cant get it to work for the other sites: for example , I want this redirection :

site.com/ru > www.site.com/ru

A: 

Try

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^site.com [nc]
rewriterule ^(.*)$ http://www.site.com/$1 [r=301,nc]
Keyo
This seems like a redirection for the main site, not the subsites, my goal is to redirect my subsite's urls. ex: site.com/fr/etc/etc should be redirected to www.site.com/fr/etc/etc
level09
Just add new rules for each domain. If you are running any decent number of multisites try out Aegir, a site manager it will manage all this for you.In my opinion www. is redundant, stackoverflow doesn't have it for example.
Keyo
A: 
RedirectPermanent /ru http://www.site.com/ru

might be a better alternative to Rewrite rules.

Mark Trapp