Categories
How to redirect from *.html to *.php in nginx?
Hello. Please help me how to correctly write a rule for NGINX so that when a user accesses, for example, site.com/index.html, he is automatically redirected to site.com/index.php
Answer the question
In order to leave comments, you need to log in
rewrite ^(.+)\.html$ /$1.php
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question