How do you configure Apache/PHP to accept slashes in query strings?

后端 未结 7 485
太阳男子
太阳男子 2020-12-10 17:55

I have two Apache servers running PHP. One accepts forward-slashes in the query string and passes it along to PHP in the expected way, for example:

http://server         


        
7条回答
  •  孤街浪徒
    2020-12-10 18:45

    You dont specify what PHP does with this url. Does it redirect to this page or try to read it?

    There is probably some mod_rewrite rule to remove double slashes, or for some other purpose, which tries to redirect this to somewhere it should not.

    Maybe a regex without ^ before http://

提交回复
热议问题