Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto virtual host with Rewrite..

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm running apache win32 and it gives me the error


Rewritelog logs/rewrite.log
RewritelogLevel 9

RewriteMap lowercase int:tolower
RewriteEngine on

RewriteCond ${lowercase:%{HTTP_HOST}} !^$
RewriteCond ${lowercase:%{HTTP_HOST}} !^
RewriteCond ${lowercase:%{HTTP_HOST}} ^(www\.|)([^.]+)\.synneergy\.com$
RewriteRule ^(.+) ${lowercase:%{HTTP_HOST}}$1 [C]
RewriteRule ^(www\.|)([^.]+)\.synneergy\.com(.*) /users/$2$3 [L]

RewriteCond ${lowercase:%{HTTP_HOST}} ^(www\.|)[^.]+\.[^.]+\.synneergy\.com$
RewriteRule ^(.+) ${lowercase:%{HTTP_HOST}}$1 [C]
RewriteRule ^(www\.|)([^.]+)\.([^.]+)\.synneergy\.com(.*) /users/$3/$2$4 [L]


it gives me the following error:
Syntax error on line 997 of e:/web/apache/conf/httpd.conf:
RewriteCond: cannot compile regular expression '^(www\.|)([^.]+)\.synneergy\.com$'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top