Welcome! Log In Create A New Profile

Advanced

nginx redirect

April 06, 2011 02:05PM
nginx/0.8.54 FreeBSD 8.2
Добрый день хочу реализовать следующую конструкцию, чтобы поисковики не думали, что http://<ИМЯ СЕРВЕРА>/index.html и http://<ИМЯ СЕРВЕРА>/ разные страницы.
Необходимо при обращении к /index.html выполнять редирект на http://<ИМЯ СЕРВЕРА>/

location = /index.html {
rewrite /index.html http://<ИМЯ СЕРВЕРА>/ break;
}

location / {
root /usr/local/www/nginx;
index index.html;
}
Subject Author Posted

nginx redirect

neon_cyrex April 06, 2011 02:05PM

Re: nginx redirect

Sergey Shepelev April 06, 2011 02:20PM

Re: nginx redirect

neon_cyrex April 07, 2011 12:30AM

Re: nginx redirect

Igor Sysoev April 07, 2011 12:38AM

Re: nginx redirect

neon_cyrex April 11, 2011 02:59PM

Re: nginx redirect

Igor Sysoev April 11, 2011 03:06PM

Re: nginx redirect

neon_cyrex April 22, 2011 12:46AM

Re: nginx redirect

neon_cyrex April 25, 2011 12:01PM

Re: nginx redirect

Alexander Kochetov April 22, 2011 01:06AM

Re: nginx redirect

neon_cyrex April 26, 2011 05:27AM

Re: nginx redirect

Vladimir Sopot February 25, 2015 08:54AM

Re: Re: nginx redirect

Styopa Semenukha February 25, 2015 11:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready