Re: rewrite c

Denis F. Latypoff latypoff yandex.ru
10 05:59:12 UTC 2011



10.10.2011, 10:23, "babayka" <nginx-forum at nginx.us>:
>      
>
> listen 80:
> server {
> server_name anysite.ru;
>
> location / {
> ......
>
- location ~ *.\php$ {
+ location ~ \.php$ {
> ......
> }
> }
>
> location /new/ {
> .......
>
+ location = /new/indo.php {
+                     if ($arg_id = 1) {
+                             return 301 /new/indo.php?id=2;
+                     }
+ ......
+             }
+
- location ~ *.\php$ {
+ location ~ \.php$ {
> ......
> }
>
> }
> }
>


-- 
br, Denis F. Latypoff.



nginx-ru