Need to allow encoded slashes on Apache

后端 未结 7 1974
我寻月下人不归
我寻月下人不归 2020-11-30 20:12

I\'m currently trying to place a URL within a URL. For example:

http://example.com/url/http%3A%2F%2Fwww.url2.com

I\'m aware that I have to

相关标签:
7条回答
  • 2020-11-30 21:03

    I wasted a great many hours on this problem too. I'm a bit late to the party, but it seems there's a solution now.

    As per this thread, there is (was) a bug in Apache such that if you have AllowEncodedSlashes On, it prevents the 404, but it mistakenly decodes the slashes, which is incorrect according to the RFC.

    This comment offers a solution, namely to use:

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