Welcome! Log In Create A New Profile

Advanced

Re: nginx редиректы

May 21, 2016 01:40AM
Вот реидректы движка приготовленные для апача.
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.site\.ru$ [NC]
RewriteRule ^(.*)$ http://site.ru/$1 [R=301,L]

RewriteCond %{THE_REQUEST} /(.*)index.php.*$
RewriteCond %{QUERY_STRING} ^\z
RewriteRule ^(.*)index\.php$ http://%{HTTP_HOST}/$1 [R=301,L]

RewriteCond %{THE_REQUEST} /(.*)index.html.*$
RewriteRule .* /%1 [R=301,L]

RewriteCond %{REQUEST_URI} (.*/[^/.]+)($|\?)
RewriteRule .* %1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

Как их перевести на nginx?
Subject Author Posted

nginx редиректы

bagas May 19, 2016 12:54PM

Re: nginx редиректы

bagas May 21, 2016 01:40AM

Re: nginx редиректы

Vasiliy P. Melnik May 22, 2016 12:51AM

Re: nginx редиректы

bagas May 22, 2016 09:22AM

Re: nginx редиректы

ALex_hha May 22, 2016 12:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 245
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready