Home > OS >  Nginx configuration at the end of the url parameter
Nginx configuration at the end of the url parameter

Time:09-17

For example:
After the success of the client address: www.baidu.com/index/MAT4/yta2, address shall be: www.baidu.com/index/MAT4/yta2? V=666
Give advice or comments! Thank you!

CodePudding user response:

There is a way to address rewriting rewrite
Rewrite the old address (regular) new address [option]

I also know the nginx, rewrite my word is thought of address, reply me if you have any new TieZhu method, I study, thanks!

CodePudding user response:

refer to table 1/f, Chen ning response:
there is a way to address rewriting rewrite
Rewrite the old address (regular) new address [option]

I also know the nginx, rewrite my word is thought of address, reply me if you have any new TieZhu method, I study, thanks!
is not very understand nginx

CodePudding user response:

Rewrite ^/(. *)/$1? V=666 permanent;
Rewrite ^/(. *)/$1? V=666 break;
Rewrite ^/http://www.baidu.com/$1? (. *) V=666 break;
Tried the two can not be, temporarily didn't think other, I have a primarily to H5 after launch, part of the mobile terminal WeChat appear white; Made in nginx
Add_header cache-control no - Cache;
Add_header cache-control private;
Expires - 1;
Don't cache
  • Related