dev99 Posted April 14, 2006 Share Posted April 14, 2006 RewriteMap lowercase int:tolowerRewriteEngine on RewriteCond ${lowercase:%{HTTP_HOST}} !^$RewriteCond ${lowercase:%{HTTP_HOST}} !^www\.hf-online.com$ RewriteCond ${lowercase:%{HTTP_HOST}} ^(www\.|)([^.]+)\.hf-online\.com$RewriteRule ^(.+) ${lowercase:%{HTTP_HOST}}$1 [C]RewriteRule ^(www\.|)([^.]+)\.hf-online\.com(.*) /users/$2$3 [L] RewriteCond ${lowercase:%{HTTP_HOST}} ^(www\.|)[^.]+\.[^.]+\.hf-online\.com$RewriteRule ^(.+) ${lowercase:%{HTTP_HOST}}$1 [C]RewriteRule ^(www\.|)([^.]+)\.([^.]+)\.hf-online\.com(.*) /users/$3/$2$4 [L]Code above works fine with apache 2.20but with apache 1.3 apache won't start error:Syntax error on line 1082 of /etc/apache/httpd.conf:RewriteCond: cannot compile regular expression'^(www\.|)([^.]+)\.hf-online\.com$' Quote Link to comment Share on other sites More sharing options...
dev99 Posted April 16, 2006 Author Share Posted April 16, 2006 ok found my answer just had to change the ^(www\.|) to ^(www\.|)? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.