Page 1 of 1

.htaccess

Posted: Tue Jun 10, 2008 6:27 am
by pedroz
I would like to have the following:

http://london.domain.com/
http://newyork.domain.com/bronkx/
redirecting to
index.php?subdomain=%1&neighborhood=%2

RewriteEngine on
RewriteCond %{HTTP_HOST} ^([^.]+)\.domain\.com$ [NC]
RewriteCond %{REQUEST_URI} ^/([^/]+)?$ [NC]
RewriteRule ^/(.*)/?$ /index.php?subdomain=%1&neighborhood=%2 [L]

what is wrong here?

thanks