8 messages in ru.sysoev.nginxRe: rewrite
FromSent OnAttachments
Yordan GeorgievMar 26, 2008 4:15 am 
Igor SysoevMar 26, 2008 5:07 am 
Yordan GeorgievMar 26, 2008 5:32 am 
RoxisMar 26, 2008 5:37 am 
Igor SysoevMar 26, 2008 5:40 am 
Yordan GeorgievMar 26, 2008 7:29 am 
Igor SysoevMar 26, 2008 7:54 am 
Yordan GeorgievMar 26, 2008 9:29 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: rewriteActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Mar 26, 2008 5:07:25 am
List:ru.sysoev.nginx

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;