Subdomain RewriteRule

Discuss practical ways rearrange URLs using mod_rewrite.

Subdomain RewriteRule

Postby negoiu » Tue Nov 08, 2005 1:10 pm

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
negoiu
 
Posts: 1
Joined: Tue Nov 08, 2005 12:59 pm

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 2 guests

cron