I created a new directory: my_domain.eu such that my directory structure looks like:
-- root_directory
---- my_domain.com // a sub directory with a domain name
---- my_domain.eu // a sub directory with a domain name
I re-set my server ( via my webhost admin control panel ) to direct:
- my_domain.com --> root_directory/my_domain.com
- my_domain.eu --> root_directory/my_domain.eu
inside the sub directory my_domain.eu I placed an htaccess:
Code:
#Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^my_domain.eu$ [OR]
RewriteCond %{HTTP_HOST} ^www.my_domain.eu$
RewriteRule (.*)$ http://www.my_domain.com/$1 [R=301,L]
and it works;
ideally, I would like to NOT have had to create sub directory my_domain.eu, but I was unsuccessful at getting the re-direct to work from root_directory ... no big deal though.
Shannon
Bookmarks