php - How to bypass %23 (hash sign) through RewriteRule without data loss? -
i have following .htaccess file:
rewriteengine on rewritecond %{request_uri} !^/command rewriterule .* /command/rewritehandler.php?q=%{request_uri} [b]   see specs @ unanswered question https://stackoverflow.com/questions/29376788/mod-rewrite-directives-and-valid-invalid-utf-8-characters-after-first-character . if request server following /aaa%23%23aa rewritehandler.php receives /aaa. looks request_uri handles data before %23. should type instead?
capture value rewritecond , use back-reference make work:
rewriteengine on  rewritecond %{request_uri} (.+) rewriterule !^command/ /command/rewritehandler.php?q=%1 [nc,b,l,qsa]      
Comments
Post a Comment