rewrite rules problem

Feb 4, 2010 at 3:29 AM

rule-1)RewriteRule ^/([^/]+)-addresses-maps-schools-in-jaipur-india/(\d+\.\d+)-(\d+\.\d+)-(\d+)$  /map.aspx?lati=$2&longi=$3&cit=1&school=$1&id=$4 [L]

this rule gets matched against following url-

abc-school-addresses-maps-schools-in-Jaipur-india/26.460738-75.640869-1

BUT

rule-2)RewriteRule ^/([^/]+)-addresses-maps-schools-in-([^/]+)-india/(\d+\.\d+)-(\d+\.\d+)-(\d+)$  /map.aspx?lati=$2&longi=$3&cit=1&school=$1&id=$4 [L]

rule-3)RewriteRule ^/([^/]+)-addresses-maps-schools-in-([^/^-]+)-india/(\d+\.\d+)-(\d+\.\d+)-(\d+)$  /map.aspx?lati=$2&longi=$3&cit=1&school=$1&id=$4 [L]

q-1)neither of rule 2 and 3 gets matched against url

abc-school-addresses-maps-schools-in-Jaipur-india/26.460738-75.640869-1

 

q-2) If I change rule1 to

RewriteRule ^/([^/]+)-addresses-maps-schools-in-jaipur-india/(\d+\.\d+)-(\d+\.\d+)-(\d+)(\.aspx)?$  /map.aspx?lati=$2&longi=$3&cit=1&school=$1&id=$4 [L]

I want rule to either end in .aspx or just ends without .aspx

this rule gets matched against following url-

abc-school-addresses-maps-schools-in-Jaipur-india/26.460738-75.640869-1

but not against

abc-school-addresses-maps-schools-in-Jaipur-india/26.460738-75.640869-1.aspx

 

Feb 4, 2010 at 7:08 AM

log file says-

Output vector (15 slots) was not large enough

what does that mean..?

 

Feb 4, 2010 at 7:39 AM

got it..

the problem was because of max match count

 

Coordinator
Feb 4, 2010 at 11:09 AM

Glad you sorted it.