Force https custom php page

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 ?

Simplest solution

  • Use Cloudflare and enable Automatic HTTPS.

In Your http block, add the following config:

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

Not Wroking

cant use for this - Engintron

  • 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

This is https://engintron.com

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

Hope this helps

3 Likes