Hi all!
This is my first post in these forums.
I have multiple domains hosted on godaddy, of the same company like
company.com
company.us
company.co.uk and so on
plus one other website completely different to the above which in not based on ModX.
I have the .com in the root folder and all the other domains inside subfolders in the root folder. I'm using Evo latest patch.
I have installed a shop and a forum (forum.company.com & shop.company.com).
All was working great until I tried to redirect non-www to www urls using the classic .htaccess way:
# Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.company\.com [NC]
RewriteRule (.*) http://www.company.com/$1 [R=301,L]
Rewriting the .htaccess files of the domains inside the subfolders (.us / .co.uk etc) works for each one of them.
Rewriting the .htaccess file of the .com domain inside the root folder breaks the other website and the forum in the following ways:
otherwebsite.com resolves OK but
otherwebsite.com/category1 resolves to
www.company.com/otherwebsite.com/category1
otherwebsite.com/category2 resolves to
www.company.com/otherwebsite.com/category2
otherwebsite.com/category3 resolves to
www.company.com/otherwebsite.com/category3
etc.
and
forum.company.com resolves to www.company.com/forum
forum.company.com/whatever resolves to
www.company.com/forum/whatever
and this way the forum is not working properly.
Is there anything I could do to fix this? I have tried moving the .com domain inside a subfolder of its own and use the .htaccess way but it didn't work.
cheers