Need to allow encoded slashes on Apache

后端 未结 7 2018
我寻月下人不归
我寻月下人不归 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 20:57

    Replace %2F with %252F at the client side.

    This is the double-encoded form of the forward slash.

    So when it reaches the server and gets prematurely decoded it will decode it to %2F which is exactly what you want.

提交回复
热议问题