Помогите с rewrite правилами, пожалуйста!

Vettchinov Mihail kpblca83 at gmail.com
Tue Sep 18 13:07:39 MSD 2007


Добрый день!

А не поможете перевести правила из апача в нгингс?
Я перечитал всю небогатую документацию на нгинкс так ничего и не понял :(

RewriteCond %{HTTP_HOST} ^hostname.ru$ [NC]
RewriteRule ^(.*)$
http://www.hostname.ru/$1 [R=301,L]
RewriteCond %{QUERY_STRING} .+
RewriteRule ^/*$ http://%{HTTP_HOST}/? [R=301]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20070918/54143bbc/attachment.html>


More information about the nginx-ru mailing list