How would my try_files
look if I wanted to have http://mydomain/script/
instead of http://mydomain/script.php
?
Sorry I couldn't find an answer anywhere, perhaps I worded the question wrong
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityMove your into a folder named script
and rename it to be index.php
Is the slash at the end an absolute requirement? If not, the url http://mydomain/script
would work if your try_files looked like this:
try_files "${uri}.php" $uri =404;
http://mydomain/script/
script.php would be called but if the domain ishttp://mydomain/script/some/extra
the latter two are passed as GET requests. How can I achieve that?