Sorry folks, I put this in PHP first... but I think it belonged in here - but anyways, here it is: I have a wildcard DNS and am using this .htaccess Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.tooth-info\.com$ [NC] RewriteRule ^([-a-zA-Z]+)?$ state.php?site=%{HTTP_HOST}&id=$1 [NC,L] RewriteRule ^state/([-a-zA-Z]+)/([0-9]+)/?$ county.php?site=%{HTTP_HOST}&statename=$1&id=$2 [NC,L] RewriteRule ^county/([-a-zA-Z]+)/([-a-zA-Z]+)/([0-9]+)/?$ city.php?site=%{HTTP_HOST}&statename=$1&countyname=$2&id=$3 [NC,L] RewriteRule ^city/([-a-zA-Z]+)/([-a-zA-Z]+)/([-a-zA-Z]+)/([0-9]+)/([0-9]+)/?$ information.php?site=%{HTTP_HOST}&statename=$1&countyname=$2&cityname=$3&id=$4&countyid=$5 [NC,L] The issue is - city is very fast, county is medium, state and anything else is very slow. So it takes forever for the first rewriterule, faster for the second rewriterule, third is even faster, and fourth is the fastest - the first one takes like 10 seconds to parse and even start hitting the page... Any assistance is appreciated! thanks - also, removing the NC (Non-case sensitive) doesn't help
The "Regex Coach" says: and btw: your = belonging to you; you're = you are Mentioned simply because we seem to carry our faults from one place to the next (the English language -> regular expressions).