htaccess to escape percent (%) from URL

前端 未结 1 1192
时光取名叫无心
时光取名叫无心 2020-12-11 20:59

Having percent sign inside URL, returns bad request (error 400) to the browser. I have a filename that have percent (%) sign, resides at server.

Original

相关标签:
1条回答
  • 2020-12-11 21:11

    Try the B flag to ensure the %25, unescaped to % by mod_rewrite, is re-escaped back to %25 when inserted back into the target path.

    RewriteRule .* index.php/$0 [PTB]
    
    0 讨论(0)
提交回复
热议问题