On Thu, Jun 09, 2011 at 12:10:51PM +0400, Igor Sysoev wrote: - location /gallery3/(index\.php/)?(.+)$ { + location ~ /gallery3/(index\.php/)?(.+)$ { -- Igor Sysoev