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:Yordan Georgiev (y.ge@public.gmane.org)
Date:Mar 26, 2008 7:29:04 am
List:ru.sysoev.nginx

Super. This solution is good!

2. Apache server serves a little bit more than 100 clients. How should i proceed to all rewrite rules with minimal corrections? Any idea?

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

On Wed, Mar 26, 2008 at 02:32:53PM +0200, Yordan Georgiev wrote:

- rewrite ^(.*)/$ /index.php?page=$1; + rewrite ^/?(.*)/$ /index.php?page=$1;

On Wed, Mar 26, 2008 at 2:07 PM, Igor Sysoev <is@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;

-- Please excuse my bad english...

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

WEB: http://gigavolt-bg.net/ Blog: http://live.gigavolt-bg.net/