Rewrite - problem

Igor Sysoev is at
Thu Aug 9 00:30:58 MSD 2007

On Wed, Aug 08, 2007 at 10:22:35PM +0200, makdar wrote:

> When i use 'break' then i'm redirecting to the home page.
> i have folder Galery and people can create private galery for example:
> i have galery and the url is :
>    and this is  redirecting to folder 
> /home/mywebsite/galery/index.php
> In apache everything works fine but the rewrite rules in nginx don't 
> want to.

Yes, "rewrite ^/galery/(.+)$ /galery/index.php break;" pases request
to /galery/index.php. Where do you want to place "mygalery" ?

Igor Sysoev

More information about the nginx mailing list