> location ~ \.php$ { ".php" won't be in the web address, so this won't work. > index a.php b.php I'm not sure how this would help either. I don't want to list the .php files one by one in the server configuration. I want to be able to add files at will to my website, without having to edit the nginx config for each path. I want to be able to add, for example, /rhubarbby nginabanks - How to...
If I put a .php file at http://www.example.com/a.php, then I want it to run if the user goes to http://www.examle.com/a, http://www.example.com/a/b, or http://www.example.com/a/b/c.by nginabanks - How to...
With Apache, this address: http://www.example.com/abc/def/ghi/jkl/mno will work if any of these files exist: /abc.php /abc/def.php /abc/def/ghi.php /abc/def/ghi/jkl.php /abc/def/ghi/jkl/mno.php without even turning on mod_rewrite. It takes just these two lines: Options MultiViews AcceptPathInfo On (Actually, for .php files and other scripts, you don't even need Accby nginabanks - How to...
![]() |
![]() |
![]() |
![]() |
|