On my server http is installed Nginx version: 1.2.7
Today I turned on SSL.
But I have a big problem, i do not know how to set the absolute all subpages diverted permanently to: https://example.com
So I want all this:
http://example.comhttp://www.example.com
to be redirected to https://example.com
http://www.example.com/test.pdfto be redirected tohttps://example.com/test.pdf
Like all subpages (I have 500 sub pages 200 html – 300 pdf).
On my https installed Apache.
Also how to configure everything, because I have very little knowledge.