Http to https

I’m a beginer using concrete5.6.3.3
I was wondering how could I make a change http to https without using cloud flare, is there anyway or if it’s possible. suggestion will be much appreciated,

First make sure your web server has a valid SSL certificate for your domain.
Then add a definition line in your root/config/site.php file thus:
define(‘BASE_URL’, ‘https://(your domain name here)’;

Dear ConcreteOwl,
Thank you so much for your advise,
I’ll do that to check my server if they have SSL certificate first,
and try to follow as your advise,

Dear @ConcreteOwl

I would like to automatically redirect all http pages into https
I tried your method and failed.

I tried your method by adding this line at the end of the site.php file
define(‘BASE_URL’, ‘https://www.militaria-deal.com’;

And I got this syntax error message : syntax error, unexpected ‘:’, expecting ‘)’

Any idea of what I did wrong ?

I have posted an image of the problem.
Screenshot 2023-10-13 162604

Thank you @ConcreteOwl.
Your code is now accepted but it doesn’t automatically redirect http page to https on my website militaria-deal(dot)com (it seems I can’t post link here)

Any idea ?

It does go to a https site for me.
Try clearing out your browser cache.

@ConcreteOwl

Try to write the url with http://
It won’t redirect you to https://

My issue is Google is leading to http pages.
Put “Bayonet value” in Google, click on the Militaria Deal page. You will reach an http page, not https.

I would like http pages to be redirected to https automatically (as on wordpress).

Should I enter something in the “Canonical url” in the Dashboard ?

Looking at the source code of your site, the canonical url is already set to https.
Putting ‘Bayonet Value’ into a google search shows a link to your site and clicking that link takes me to an https page?
So I still think you are being served old cached pages to your browser.