Jump to content

Force HTTPS newbie

truemax
Go to solution Solved by wasab,
1 hour ago, truemax said:

I do not? I got a server from OVH and SSL from Cloudfare

 

The answer must be be easy but never done this before.

You need to read their documentations then. 

https://support.cloudflare.com/hc/en-us/articles/204144518

Hello for the first time i managed to get a ssl for my website.

Atm if you access my page through www. Or even without www i land at http how can i force it to go to https?

Was thinking of redirecting user to https once they hit index page.

But then i thought what if they access non index page?should go to http?

Or with htaccess but no idea where to place it.

All folder/subfolders or just in root page.

Link to comment
Share on other sites

Link to post
Share on other sites

43 minutes ago, Theguywhobea said:

Are you using NGINX?

I do not? I got a server from OVH and SSL from Cloudfare

 

The answer must be be easy but never done this before.

Link to comment
Share on other sites

Link to post
Share on other sites

What are you using as a web server? Just because you have a domain and a certificate doesn't mean your webserver will magically start using it without any changes.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

simply redirect it to https. You can do this using nginx or in your own backend server application. I would suggest using nginx, i mean thats one reason people use reverse proxy.

Sudo make me a sandwich 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×