Forum Moderators: phranque
RewriteEngine on # replace %3F with ?
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)\%3[Ff](.*)\ HTTP/ [NC]
RewriteRule \.*$ http://www.mysite.com/%1?%2 [R=301,L] GET /somefile?somequery=somevalue HTTP/1.1 request. By using two (.*) patterns you are saying that you want to match "everything" into the first (.*) and then match it all again in the second one. This confuses the parser beyond belief. It then has to make tens of thousands of "back off and retry" trial matches until it discovers you only want "some" of the input in the first backreference and "some" of it in the second. ([^\%]+) and ([^\ ]+)