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
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