On 19.06.2010 16:53, WisdomFusion wrote:
> #rewrite dynamic url with querystrings
> if ($args ~* "boardid=[0-9]+&id=([0-9]+)") {
> set $tid $1;
> rewrite ^.*$ http://www2.example.com/thread-$tid-1-1.html permanent;
- rewrite ^.*$ http://www2.example.com/thread-$tid-1-1.html permanent;
+ rewrite ^ http://www2.example.com/thread-$tid-1-1.html? permanent;
> #at the end, rewrite undefined urls permanently
> rewrite ^(.*) http://www2.example.com$1 permanent;
- rewrite ^(.*) http://www2.example.com$1 permanent;
+ rewrite ^ http://www2.example.com$request_uri? permanent;
--
Best regards,
Gena
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx