| subdomain rewritemap issue [message #885] |
Tue, 19 February 2008 22:12 |
kent88 Messages: 1 Registered: February 2008 |
|
|
|
Hi,
I am trying to turn this --> newyork.domain.com into this --> testsite.domain.com/index.php?region=245
I have wildcard subdomains setup on my server so you can type in anything like: anywhere.domain.com and get the content of testsite.domain.com so that is working correctly.
I have a text file (map-list.txt)with the contents in this format:
newyork 245
losangeles 246
boston 247
...
Here is the last few lines of httpd.conf
RewriteEngine on
RewriteMap city txt:/home/username/public_html/testsite/map-list.txt
RewriteCond %{HTTP_HOST} ^([^.]+).domain.com$
RewriteRule ^(.*)$ index.php?region=${city:%1|http://domain.com/nocity.htm}
But it does not change the region when I go to newyork.domain.com
Any direction on this would be appreciated.
|
|
|