rewrite

Yordan Georgiev y.georgiev at gmail.com
Wed Mar 26 15:32:53 MSK 2008


Result: http://www.domain.tld/index.php?page=/test
Desire: http://www.domein.tld/index.php?page=test

On Wed, Mar 26, 2008 at 2:07 PM, Igor Sysoev <is at rambler-co.ru> wrote:

> On Wed, Mar 26, 2008 at 01:15:45PM +0200, Yordan Georgiev wrote:
>
> > 1. How should I proceed "RewriteRule ^(.*)\/$ index.php?page=$1",
> because
> > when I replace this rule with
> > if ($host ~* "www.domain.tld" ) {
> > rewrite ^/([^/]+)/ /index.php?page=$1;
> > break;
> > }
> > But my directory in the root folder does not work. How should I set this
> > rule correctly
>
>       server {
>          server_name  www.domain.tld;
>
>          rewrite  ^(.*)/$ /index.php?page=$1;
>
>           ...
>      }
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>


-- 
Please excuse my bad english...

С уважение,
Й. Георгиев.

WEB: http://gigavolt-bg.net/
Blog: http://live.gigavolt-bg.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080326/c72df07a/attachment.html>


More information about the nginx mailing list