How to use .htaccess and mod_rewrite in 1 host-3 domain environment?

insp3kt0r used Ask the Experts™
I have one hosting account and three domains.

What's the best way to write rules to .htaccess in following situation:

- one account, three domains (,,
- need to redirect these to three subdirs (CN, FI, EN) SO that full path is visible in browser
* (www.) redirects /CN/ and shows as
* (www.) redirects /FI/ and shows as
* (www.) redirects /COM/ and shows as

I do have a fully working and smooth rules currently which in fact hides those subdirs from browser's address field. However, I want/need them to be visible.

I guess answer is simple, however I'm missing something and can't get it to function like described above.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
RewriteEngine On
RewriteCond %{HTTP_HOST} domain\.cn
RewriteCond %{REQUEST_URI} !^/CN/
RewriteRule ^(.*)$$1 [R=301,L]
RewriteCond %{HTTP_HOST} domain\.fi
RewriteCond %{REQUEST_URI} !^/FI/
RewriteRule ^(.*)$$1 [R=301,L]
RewriteCond %{HTTP_HOST} domain\.com
RewriteCond %{REQUEST_URI} !^/EN/
RewriteRule ^(.*)$$1 [R=301,L]

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial