Есть сервер на nginx
.
Мне необходимо настроить 301 редирект со страниц example.com/about.html на example.com/about/,
example.com/about.htm на example.com/about/ и т.д., чтобы исключить дубли и ошибочные страницы.
server {
listen 80;
server_name ${VIRTUAL_HOST};
# redirect all http to https
return 301 https://$server_name$request_uri;
}