July 15, 2020 08:18AM
> On 15 Jul 2020, at 15:13, akoval <nginx-forum@forum.nginx.org> wrote:
>
> Напр:
> rewrite http://site1.com/aaa/ https://site1.com/bbb permanent; - работает
> rewrite http://site1.com/aaa https://site1.com/bbb permanent; - а так уже не
> хочет
>
> Пробую разные регулярки, но пока не работает:
> rewrite ^/ua/about/loyalty-program/?$ https://apteka-ds.com.ua/discount
> permanent;

location /ua/about/loyalty-program {
return 301 https://apteka-ds.com.ua/discount;
}


--
Igor Sysoev
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nginx. редирект урла без слеша в конце?

akoval July 15, 2020 08:13AM

Re: nginx. редирект урла без слеша в конце?

Igor Sysoev July 15, 2020 08:18AM

Re: nginx. редирект урла без слеша в конце?

akoval July 15, 2020 09:31AM

Re: nginx. редирект урла без слеша в конце?

Igor Sysoev July 15, 2020 09:42AM

Re: nginx. редирект урла без слеша в конце?

akoval July 15, 2020 10:19AM

Re: nginx. редирект урла без слеша в конце?

akoval July 15, 2020 10:23AM

Re: nginx. редирект урла без слеша в конце?

Sergey Kandaurov July 15, 2020 10:40AM

Re: nginx. редирект урла без слеша в конце?

Gena Makhomed July 15, 2020 10:40AM

Re: nginx. редирект урла без слеша в конце?

fox July 15, 2020 10:44AM

Re: nginx. редирект урла без слеша в конце?

akoval July 15, 2020 10:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 122
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready