how to rewrite this: apache to nginx
Igor Sysoev
is at rambler-co.ru
Fri Aug 29 13:32:06 MSD 2008
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 ?
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list