26 messages in ru.sysoev.nginxRe: how to rewrite this: apache to nginx
FromSent OnAttachments
Robert GabrielAug 29, 2008 1:54 am 
Igor SysoevAug 29, 2008 2:00 am 
Robert GabrielAug 29, 2008 2:12 am 
Igor SysoevAug 29, 2008 2:16 am 
Robert GabrielAug 29, 2008 2:27 am 
Igor SysoevAug 29, 2008 2:31 am 
Robert GabrielAug 29, 2008 2:41 am 
Igor SysoevAug 29, 2008 2:59 am 
Robert GabrielAug 29, 2008 3:45 am 
Igor SysoevAug 29, 2008 3:59 am 
Robert GabrielAug 29, 2008 4:10 am 
Igor SysoevAug 29, 2008 4:29 am 
Robert GabrielAug 29, 2008 4:45 am 
Sergej KandylaAug 29, 2008 4:55 am 
Igor SysoevAug 29, 2008 5:01 am 
Robert GabrielAug 29, 2008 5:06 am 
Robert GabrielAug 29, 2008 5:16 am 
Robert GabrielAug 29, 2008 5:18 am 
Igor SysoevAug 29, 2008 6:25 am 
Robert GabrielAug 29, 2008 7:18 am 
Igor SysoevAug 29, 2008 7:24 am 
Robert GabrielAug 29, 2008 12:39 pm 
Robert GabrielSep 1, 2008 12:59 am 
Igor ClarkSep 1, 2008 2:09 am 
Robert GabrielSep 1, 2008 9:35 am 
Robert GabrielSep 5, 2008 2:43 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: how to rewrite this: apache to nginxActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Aug 29, 2008 2:31:43 am
List:ru.sysoev.nginx

On Fri, Aug 29, 2008 at 11:28:03AM +0200, Robert Gabriel wrote:

Igor Sysoev wrote:

On Fri, Aug 29, 2008 at 11:13:20AM +0200, Robert Gabriel wrote:

But what about this?

RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L]

location / { error_page 404 = /index.php; }

It doesnt work, I was thinking to do it like this:

if (!-f $request_filename) { rewrite . /index.php last; break; }

No, do not use this.

But this doesnt work eider, the website doesnt seems to work and if I dont use any rewrite rules I get 404 error and if I use the rules, its just messed up.

Could you show your configuration ?