Answer the question
In order to leave comments, you need to log in
nginx rewrite like apache?
Previously, the site was running on Apache, and there were paths everywhere:
example.org/index (the request went to example.org/index.php)
example.org/admin (the request went to example.org/admin.php)
example.org/profile (the request went to example.org/profile.php)
Apache automatically processed the path data, and quietly opened.
After transferring to Nginx, the paths of such a plan are not acceptable for him, and climbing to add *.php everywhere is dreary and unrealistic.
How can I make Nginx behave the way it did out of the box with Apache rewrite enabled?
Answer the question
In order to leave comments, you need to log in
Choose any convenient option:
stackoverflow.com/questions/21911297/how-to-remove...
stackoverflow.com/questions/36383539/remove-php-ex...
stackoverflow.com/questions/19975218/remove-php-fr ...
https://www.digitalocean.com/community/questions/n...
Maybe https://winginx.com/ru/htaccess will help you if the rules are not tricky
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question