I have set up a certiificate, is there anywhere in the config that would ensure that any http request to it gets moved to https?
Thanks in advance
Jonathan
I have set up a certiificate, is there anywhere in the config that would ensure that any http request to it gets moved to https?
Thanks in advance
Jonathan
@jnash
Change variable ‘site_url’ in file: config.php.
Thank you however have done that however if accessing it from http it doesn’t not switch to https
@jnash
It don’t switch to https. It will generate links with https. You should change config of your web server (apache, nginx, …) or change file ‘.htaccess’ for switching.
Thanks, which links does it generate as when I’m in the app I would clicking on links still goes to http, I’m assuming let now are relative on the site and that means no option to use http in the url
@jnash
It’s 2 differnt situations.
If your session use http protocol when starting then all relative links will use http too.
Under your CRM folder open the .htaccess file and add this - worked for me
#redirect to https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^index\.php$ https://example.com/CRM/index.php [R,L]
Thank you very much, that worked perfectly.
Looking like a good fix - thanks