Apache rewrite rule for a destination containing a hash mark

前端 未结 1 977
抹茶落季
抹茶落季 2021-02-18 16:55

I\'m trying to issue a redirect where the destination contains a fragment-identifier part. I tried with this rule:

RewriteRule   ^/foo/bar/([^/]+)/(.*)$  /cgi/s         


        
相关标签:
1条回答
  • 2021-02-18 17:49

    Solution found: there is an option for not escaping urls with mod_rewrite:

    https://httpd.apache.org/docs/2.2/rewrite/flags.html#flag_ne

    Adding the [NE] flag solved the problem.

    0 讨论(0)
提交回复
热议问题