Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Настройка mod rewrite
- To: nginx-ru@xxxxxxxxx
- Subject: Настройка mod rewrite
- From: "tchibo" <nginx-forum@xxxxxxxx>
- Date: Sun, 10 Nov 2013 15:17:12 -0500
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=helium.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=cFfRxQYiVBZ4qz7rCiot5jnqfkBS6pYO6PmYVd7yabE=; b=v0vAOD7vq17S/ziLqwJ18F4UM2Tm2Ln8MyNTEt3Y67zN350R6JccSPDZYQqaVYo0qLorrBZE1uj37hlMpybXjRkQCjH0RbA0tIjuWOHQ0+WUWR/JasCW/G3ECiT0xbeyoOU5Nj0OWmTNUpFuMjmJdyvOy2zxSus7L4NXoCa0gQU=;
Добрый день, господа.
Помогите с адаптацией конфигурационного файла Apache .htaccess в инструкции
конфигурационного файла nginx'а.
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteRule ^(.*),(.*)$ $2.php?rewrite_params=$1&page_url=$2
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
Пробовал генераторами - не помогает
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,244551,244551#msg-244551
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|