Will Nginx's rewrite function be discarded? Are the parameters passed in?
仅有的幸福
仅有的幸福 2017-05-16 17:24:51
0
2
535
server {
  if ($host ~* ^example.com) {
    rewrite ^(.*) http://www.example.com permanent;
  }
}

When I send a request like http://example.com/aa.jsp?time=1. The forwarded request becomes http://www.example.com/aa.jsp Are the parameters after the question mark discarded? ? ?

How to set the parameters after the question mark is discarded by the Ministry of Energy? thanks, thanks

仅有的幸福
仅有的幸福

reply all(2)
大家讲道理

Later I found out that I actually made a mistake during the test. . . After perfecting the test conditions, everything is normal. Thank you for your reply

習慣沉默


if ($host = 'example.com' ) {
rewrite ^/(.*)$ http://www.example.com/$1 permanent;
}

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!