Using .htaccess to replace backslash in URL with forward-slash

后端 未结 1 402
暗喜
暗喜 2021-01-07 07:15

I realise that a backslash should never appear in a URL in a form other than a URL escape code, however in this case the URL\'s are being generated by a .NET application for

相关标签:
1条回答
  • 2021-01-07 07:28
    RewriteEngine On
    RewriteCond %{REQUEST_URI} (.*)\\(.*)
    RewriteRule .* %1/%2 [R=301]
    
    0 讨论(0)
提交回复
热议问题