I have ixs.imagis.ro subdomain and i want to load without redirect index.php from website root, not subdomain root.
I am using mod_rewrite into htaccess file of website root. The problem is that for request:
ixs.imagis.ro/foo
the path in Rewrite Rule seems to be be ixs/foo not /ixs/foo. So, the redirection goes to index.php from ixs subdomain, not from site root.
Don't know what to do to fix this.
Any ideea to solve this ?
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTP_HOST} ^ixs\.imagis\.ro [NC]
RewriteRule ^(.*)$ /index.php?page=$1