Force https custom php page

#1

I have created a custom page by using php
Example: mydomain.tld/custom-page.php
But when I open it via chrome it loading over http not https
How to force it to load over https ?

0 Likes

#2

Simplest solution

  • Use Cloudflare and enable Automatic HTTPS.
0 Likes

#3

In Your http block, add the following config:

location /custom-page.php
{
return https://example.com/custom-page.php
}
0 Likes

#4

Not Wroking

0 Likes

#5

cant use for this - Engintron

0 Likes

#6
  • I dont know about this Engintron.

  • If you can avoid it, and setup Web Stack manually I think certbot for Let’s Encrypt SSL can do for you.

1 Like

#7

This is https://engintron.com

0 Likes

#8

Post your configuration! I’m pretty sure you’ve done it wrong.

0 Likes