Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rewrite



On Wed, 23 Nov 2005, RaPaMaN wrote:

       ?

rewrite ^/move.php?thepage=(\d+)        /new_url-$1     permanent;

.    :

    location = /move.php {

        set $page  "";

        if ($query_string ~ (?:^|&)thepage=(\d+)) {
            set   $page   $1;
        }

        rewrite  ^  /new_url-$page   peramnent;
    }


 
http://sysoev.ru




 




Copyright © Lexa Software, 1996-2009.