What happens when i put a slash (/) after a .php url?

后端 未结 2 1755
一生所求
一生所求 2021-01-02 13:51

I have a simple question, but could not find the answer anywhere

say I have a site \"mysite.com\". I can access the index page by either typing \"mysite.com\" or \"

2条回答
  •  伪装坚强ぢ
    2021-01-02 14:38

    When the server notices that a "directory" in the URL is a script rather than an actual directory, it runs the script. The remaining components of the path in the URL are put in the PHP variable $_SERVER['PATH_INFO'].

提交回复
热议问题