T
T
TraiDeR2014-07-14 16:22:46
Nginx
TraiDeR, 2014-07-14 16:22:46

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

1 answer(s)
D
Dmitry Entelis, 2014-07-14
@TraiDeR

rewrite ^(.+)\.html$ /$1.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question