0

How I can redirect all SSL requests to "https" folder? My frontend webserver is nginx.

For example:

https: //website.com/checkout.php should be redirected to https://website.com/https/checkout.php

Please help me with this question.

2 Answers2

0

in the server {} block

rewrite ^/checkout.php$  https://website.com/https/checkout.php permanent;
Mike
  • 21,910
  • 7
  • 55
  • 79
0
location / {
    rewrite ^ https://website.com/https$request_uri permanent;
}

location /https {
    // Whatever you normally do
}
Martin Fjordvald
  • 7,589
  • 1
  • 28
  • 35