Hi all,
i' ve got two domains on a single shared hosting so trying to get to separate websites to work on it with help of htaccess.
So far I have managed to get it to work that http://example.com and http://example2.com both redirects fine, but noticed if i start the url with http://www.. it doesnt work.
Just started to mess about with htaccess business so cant get my head around it at all, if anyone could help out. Thank you!
contents of the htaccess file:
RewriteEngine on
Options +FollowSymLinks
RewriteBase /
# Site 1
RewriteCond %{HTTP_HOST} ^test247.info$ [NC]
RewriteCond %{REQUEST_URI} !^/_test247_info/.*$
RewriteRule ^(.*)$ /_test247_info/$1 [L]
# Site 2
RewriteCond %{HTTP_HOST} ^test247.com$ [NC]
RewriteCond %{REQUEST_URI} !^/_test247_com/.*$
RewriteRule ^(.*)$ /_test247_com/$1 [L]