Forum Moderators: phranque
RewriteCond %{REQUEST_URI} !^/(?:foo|bar)/(?:.+)\.php$ [NC]
RewriteRule ^(foo|bar)/(.+)/?$ /foo/view.php?cat=$1&id=$2 [QSA,NE,NC,L] RewriteCond %{REQUEST_URI} !\.php$ [NC]
RewriteRule ^(foo|bar)/(.+)/?$ /foo/view.php?cat=$1&id=$2 [QSA,NE,NC,L] Didn't we establish earlier that [NE] isn't necessary for the & character in a query string?
I might have missed that
I tend to remember threads where I said something factually incorrect and someone set me straight.
Why specifically say that & would be converted to hexcode if it's not?I thought it meant that if you are demented enough to have an & in the middle of an URLpath (not in the query string), that would be percent-encoded. But a quick detour to the test site tells me this is not the case. In fact the only things I could find that come through with percent-encoding are # (%23) and % itself (%25).