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 redirected https://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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -