I have set up context router. I have 2 different context with 2 different domains. i have domain2 parked and pointed to my modx directory. This is my first time playing with multiple context and I am having trouble using the htacess file to redirect domain.com to www.domain.com on both sites.
I would normally do something like this in htacess
## Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^experiencewellspring.com[nc]
RewriteRule ^(.*)$ http:## www.experiencewellspring.com/$1 [r=301,nc]
but if I do that, the context router doesn't work.
if I try to do both domains, I get a loop.
## Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^experiencewellspring.com[nc]
RewriteRule ^(.*)$ http:## www.experiencewellspring.com/$1 [r=301,nc]
RewriteCond %{HTTP_HOST} ^hortoncountryhome.com[nc]
RewriteRule ^(.*)$ http:## www.hortoncountryhome.com/$1 [r=301,nc]
What is the best way to accomplish this?