Y
Y
Yan Alexandrov2018-08-29 11:01:57
Nginx
Yan Alexandrov, 2018-08-29 11:01:57

301 redirect to nginx site with html to no html?

There are links like https://site.ru/page.html
You need to set up a 301 redirect to https://site.ru/page/
Nginx
Give a link where to study or ask for help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2018-08-29
@Stalker_RED

rewrite ^(.+)\.html$ $1 permanent;(offhand, you need to test)
https://www.nginx.com/blog/creating-nginx-rewrite-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question