E
E
Egor Polyakov2020-10-18 18:24:52
Nginx
Egor Polyakov, 2020-10-18 18:24:52

What is the correct way to process *.html into *.php in NGINX configuration when requested?

There was a directory on .html > transferred to .php in /graphics/
Received: everything works on the site.
For indexing correctly, when accessing: https://bundlespace.com/graphics/abstract-flower-b...
issue https://bundlespace.com/graphics/abstract-flower-bud

The directive seems to be made and launched, but does not work on nginx.
5f8c5dfaae904788262171.png
default:
5f8c5e2bbe79d700791778.png

What could be wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dodo512, 2020-10-18
@dodo512

server {
    rewrite ^(/graphics/.+)\.html$  $1 permanent;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question