Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: помогите переделать re write
- To: nginx-ru@xxxxxxxxx
- Subject: Re: Re: помогите переделать re write
- From: Хордов Роман <rkhordov@xxxxxxxxx>
- Date: Tue, 02 Mar 2010 16:26:15 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1267536381; bh=C5FVhG91Rfi6H6EUyBBIx6BZhWfGixETVG4/kpU4Irg=; h=From:To:In-Reply-To:References:Subject:MIME-Version:Message-Id: Date:Content-Transfer-Encoding:Content-Type; b=kre6p2xARQM0pOj1F3tmMpG8u0CWef5IgOrP8cXPxVXtH4AQbqXpBJf+IMtnW5RS4 ed4AApHSc8a/ppU16IX5n/MShnRigV9+0sZRa+x0sd9YNXk0CinmBcZPwRQ0RheZpL NWB5Z97fO9Sh/sFv928ROLD+zhbSQKCAxZkkZpIo=
- In-reply-to: <20100302124818.GE4623@xxxxxxxxxxxxx>
- References: <252141267530596@xxxxxxxxxxxxxxxxxxx> <20100302124818.GE4623@xxxxxxxxxxxxx>
Спасибо! Работает.
> > Помогите, пожалуйста, переделать rewrite-правила от .htaccess под nginx
> > RewriteEngine On
> > RewriteCond %{REQUEST_FILENAME} !-f
> > RewriteRule ^view_(.*).htm$ view.php?pg=$1
>
> location ~ ^/view_(?.*)\.htm$ {
> root /path/to/files;
> try_files $uri /view.php?pg=$name;
> }
>
> location ~ \.php$ {
> ...
> }
>
>
>
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|