request rewrite emergency*

Igor Sysoev is at rambler-co.ru
Sun Oct 4 23:37:24 MSD 2009


On Sat, Oct 03, 2009 at 09:57:52PM -0400, saiyan wrote:

> 
> 
> RewriteRule /catalog/(.*) /catalog/$1 
> RewriteRule /lib/(.*) /lib/$1 
> RewriteRule /skins/(.*) /skins/$1 
> RewriteRule /payments/(.*) /payments/$1 
> RewriteRule /images/(.*) /images/$1 
> RewriteRule /index\.php(.*) /index.php$1 
> RewriteRule /admin\.php(.*) /admin.php$1 
> RewriteRule ^(.*)$ /index.php?sef_rewrite=1 

     location / {
         rewrite  ^  /index.php?sef_rewrite=1;
     }

     location /catalog/ {
         fastcgi_pass   ...
     }

     location /lib/ {
         fastcgi_pass   ...
     }

     location /skins/ {
         fastcgi_pass   ...
     }

     location /payments/ {
         fastcgi_pass   ...
     }

     location /images/ {
         fastcgi_pass   ...
     }

     location /index.php {
         fastcgi_pass   ...
     }

     location /admin.php {
         fastcgi_pass   ...
     }


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list