2

How can I redirect a specific https page to http, example:
https://example.com/foo -> http://example.com/foo
Only for the page foo, and no other page.
Thank you.

rnathani
  • 23
  • 2

1 Answers1

1
server {
  listen      443;
  ssl         on;

  location /path/to/your/page {
    return 301 http://domain.com$request_uri;
  }
  ...

Then you'll need the corresponding block that has:

server {
   listen         80;
   ...
Jeff Ferland
  • 20,547
  • 2
  • 62
  • 85