Hello, I'm using Joomla + Joomfish + JoomSEF and I need some help with rewrites.
1. Joomfish added country code after domain name (like
www.domain.com/en) - I need to rewrite another language to subdomain - e.g. main language of site remains as is, another language is rewrited to
countrycode.domain.com or
seconddomain.com . Can anybodoy help me with it?
2. Second case: I've added new domain to my server, I would like to redirect (301 redirection) new domain to old domain.
Unfortunately somethin like this:
RewriteCond %{HTTP_HOST} newdomain.com
RewriteRule ^(.*)$
olddomain.com [R=301,L]
in .htaccess causes that all pages with newdomain.com in name are redirected to mainpage of olddomain.com e.g.
newdomain.com -->
olddomain.com (all right) but
newdomain.com/en/link-to-article -->
olddomain.com not for
olddomain.com/en/link-to-article.
Can anybody knows how to fix it?
I'm looking forward for some advices.
regards
Mariusz