curl -v "http://fw.test/test.txt"> GET /test.txt HTTP/1.1> Host: fw.test> User-Agent: curl/7.64.1> Accept: */*> < HTTP/1.1 302 Moved Temporarily< Server: nginx< Date: Sun, 19 May 2019 16:51:55 GMT< Content-Type: text/html< Content-Length: 154< Connection: keep-alive< Location: https://fabian-franz.eu/test.txt< <html><head><title>302 Found</title></head><body bgcolor="white"><center><h1>302 Found</h1></center><hr><center>nginx</center></body></html>
rewrite / https://server.name permanent;
rewrite / https://server.name redirect;
return 301 https://server.name;
Example:Regex: (.*)New URL Pattern: https://fabian-franz.eu$1Flag: RedirectResult:Code: [Select]curl -v "http://fw.test/test.txt"> GET /test.txt HTTP/1.1> Host: fw.test> User-Agent: curl/7.64.1> Accept: */*> < HTTP/1.1 302 Moved Temporarily< Server: nginx< Date: Sun, 19 May 2019 16:51:55 GMT< Content-Type: text/html< Content-Length: 154< Connection: keep-alive< Location: https://fabian-franz.eu/test.txt< <html><head><title>302 Found</title></head><body bgcolor="white"><center><h1>302 Found</h1></center><hr><center>nginx</center></body></html>