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 Answers 2

0

in the server {} block

rewrite ^/checkout.php$  https://website.com/https/checkout.php permanent;
1
  • No, for all pages, not checkout only.
    – Aleksey
    Dec 2, 2010 at 15:30
0
location / {
    rewrite ^ https://website.com/https$request_uri permanent;
}

location /https {
    // Whatever you normally do
}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .