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$' Link to comment https://forums.phpfreaks.com/topic/7365-rewrite-problem/ 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\.|)? Link to comment https://forums.phpfreaks.com/topic/7365-rewrite-problem/#findComment-27455 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.