The Apache service named reported the following error:
>>> RewriteRule: bad argument line '^/index.php?uid=The Apache service named' .
- Code: Select all
ServerName wildcard.domain.com
ServerAlias *.domain.com
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.domain\.com
RewriteCond %{HTTP_HOST} ([^.]+)\.domain\.com [NC]
RewriteMap stfuid txt:"c:/domain_uid.txt"
RewriteRule ^/index.php?uid=%1
{stfuid:$1| http://www.domain.com/test.php }
I'm trying to rewrite the url in this manner,
username.domain.com --> username.domain.com/index.php?uid=01
the map file is located at c:/domain_uid.txt and is in this format:
username 01
username1 02
Any help would be appreciated! Thanks!