benek Wrote:
-------------------------------------------------------
> Hello i would like to permanently
>
> rewrite
> ^/asd/(.*)-(.*)/$http://something.yourwebsite.com/
> asd/$1-$2 permanent;
>
> And it doesnt work !
>
> If i try to replace "-" with "/"
>
> rewrite
> ^/asd/(.*)/(.*)/$http://something.yourwebsite.com/
> asd/$1/$2 permanent;
>
> it works ok.
>
Shouldn't there be a space between the first and second rewrite arguments? Eg:
rewrite ^/asd/(.*)-(.*)$ http://something.yourwebsite.com/asd/$1-$2 permanent;
better variant:
rewrite ^/asd/([^-]+-.*)$ http://something.yourwebsite.com/asd/$1 permanent;
Andrejs