why does the regex in my rewrite condition seem to not catch?
问题 I have URLs like the following: mysite.com/eng?sentence=dog and I want to rewrite them as mysite.com/eng/dog so I want to replace ?sentence= with a "/" I have tried all of the following: RewriteCond %{THE_REQUEST} ^GET\ sentence= [NC] RewriteRule ^ /%1 [NC,L,NE] RewriteCond %{THE_REQUEST} ^GET\ \?sentence= [NC] RewriteRule ^ /%1 [NC,L,NE] RewriteCond %{THE_REQUEST} ^GET\ \?sentence=([^/?&\s]+) [NC] RewriteRule ^ /%1 [NC,L,NE] RewriteCond %{THE_REQUEST} ^GET\s/+\?sentence=([^/?&\s]+) [NC]