Передка правил с nginx на apache

Shestera S Leonid leonid at shestera.ru
Tue Feb 19 12:21:46 MSK 2008


Приветствую.
Есть конфиг nginx с вот таким location

               location / {
                       root   /home/www/htdocs;
                       set $concat "$request_method?$args";
                       if ($concat = "GET?") {
                              rewrite ^/$ http://$host/center/ redirect;
                       }
                       set $concat "$request_method?$args";
                       if ($request_method = "POST") {
                               rewrite ^/$ /sendsms/ last;
                       }
                       rewrite ^/comm/(.*)$ /morex/$1 break;
                       if (!-f $request_filename) {
                               rewrite /(.*\w+)$ http://$host/$1/ redirect;
                       }
                       index  /index.phtml;
               }

Помогите пожалуйста это переписать по apache .htaccess


More information about the nginx-ru mailing list