Nginx (1.2.7) redirect HTTP to HTTPS -
on server http installed nginx version: 1.2.7
today turned on ssl.
but have big problem, not know how set absolute subpages diverted permanently to: https://example.com
so want this:
http://example.com
http://www.example.com
to redirected https://example.com
http://www.example.com/test.pdf
redirectedhttps://example.com/test.pdf
like all subpages (i have 500 sub pages 200 html – 300 pdf).
on https installed apache.
also how configure everything, because have little knowledge.
try this: return 301 https://example.com$request_uri;
Comments
Post a Comment