I have two domains and one hosting account. I want the new domain to point to a sub-folder in my hosting account.
I've made a "HOST A" redirection for the new domain, so now when i type SECONDARY.COM (for example) i reach the root of the hosting (the same as if i was typing PRIMART.COM).
I then added a .htaccess file with this content :
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^secondary\.co\.il$ [NC]
RewriteRule ^(.*)$ http://www.primary.il/secondary$1 [R=301,L]
But seems like it changes nothing - When i type SECONDARY.COM i still reach the root and not the folder ("secondary").
Maybe something about the syntax, can't find the problem.
I've been trying almost anything but with no success, ANY help would be greatly appreciated.
Thanks in advance.