<![CDATA[ [SOLVED] change to https not working. base url always http in front end. manager always redirects to http - My Forums]]> https://forums.modx.com/thread/?thread=102707 <![CDATA[ [SOLVED] change to https not working. base url always http in front end. manager always redirects to http]]> https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http?page=2#dis-post-553231
I am absolutely baffled and wondering if someone knows how to overcome this issue I am having.

I am wanting to change the server type to https for an existing http Evo 1.2.1 site but no matter what I do the base url (href="http://www.the-domain.com.au/") always shows as http in the front end source code - never https.

I have changed the setting to https in Tools > Configuration > Server type.

I have cleared the cache in Evo, and also manually via ftp by deleting the file at assets > cache > siteCache.idx.php. On checking the cache file it shows the https like so: $c['server_protocol']="https" - so that bit seems to have worked.

I have disabled cloudflare by putting the site into development mode.

I have uncommented the non www to www redirects in the htaccess file so basically all remains is the friendly url code.

I even ran the 1.2.1 install in case that had any bearing with caching http but that didn't help.

When I visit the manager login page at https I get the padlock and all looks good. But when I login from that page it redirects to the http non padlock. And when I preview the site from the Evo Manager, the site shows on http.

If I visit a https version of the site, the page is broken (because the base url in the source code shows as http - href="https://www.the-domain.com.au/").

If I visit a test page where I hardcoded the base url to https://www.the-domain.com.au/, it shows with the green padlock and works fine for that one page. Hardcoding is the not the solution for the site though - it also wouldn't have any bearing on the Evo manager which I also want in https.

Could there be something in cPanel that is caching the http or something?

Any ideas?

Thanks for any help.]]>
nickf08 Aug 19, 2017, 01:27 AM https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http?page=2#dis-post-553231
<![CDATA[Re: [SOLVED] change to https not working. base url always http in front end. manager always redirects to http]]> https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http?page=2#dis-post-562650 nuan88 Nov 10, 2018, 10:32 PM https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http?page=2#dis-post-562650 <![CDATA[Re: [SOLVED] change to https not working. base url always http in front end. manager always redirects to http]]> https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http?page=2#dis-post-562649
I would raise your concern at the EvolutionCMS github section - that is where something like this would get actioned.]]>
nickf08 Nov 10, 2018, 08:37 PM https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http?page=2#dis-post-562649
<![CDATA[Re: [SOLVED] change to https not working. base url always http in front end. manager always redirects to http]]> https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http?page=2#dis-post-562629 Quote from: nickf08 at Nov 02, 2017, 10:05 PM
It was a crap host. Finally changed to a great new host and https working easily as expected

I know this is resurrecting and old thread, but I find this solution to be incomplete. The problem here is how evolution handles the header requests, in particular when it is behind a reverse proxy. Many hosts, and many instances require a reverse proxy where the SSL certificate is provided by the reverse proxy, and the website itself is hosted on a machine behind the proxy that doesn't have a cert and is only served to the proxy via http. I am running in to a similar issue on a current build, and it seems that the recent iterations of evolution still have not resolved this issue. Essentially there should be a way of over-riding the detected incoming header information and forcing the site to use https in all the url creation processes. Right now it seems that the detected incoming header of the requests is used to override any site-side settings. This is extremely frustrating. I did find one reference to setting the proxy_pass method to "Set Cookie"; in Apache which has worked for some, but i am using a non-standard reverse proxy (Caddy) that doesn't have a setting for that that I can find. In general there should be a way to simply override this on the site site as fairly simple solution, but that doesn't seem to exist.]]>
ryanfreelance Nov 09, 2018, 01:39 PM https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http?page=2#dis-post-562629
<![CDATA[Re: change to https not working. base url always http in front end. manager always redirects to http (Best Answer)]]> https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http?page=2#dis-post-554927 nickf08 Nov 02, 2017, 10:05 PM https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http?page=2#dis-post-554927 <![CDATA[Re: change to https not working. base url always http in front end. manager always redirects to http]]> https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http#dis-post-553272
I have contacted the hosting company but they are sloooooooow in response so not holding my breath for a fast response. Will advise back when I know anything more. Cheers.]]>
nickf08 Aug 22, 2017, 01:47 AM https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http#dis-post-553272
<![CDATA[Re: change to https not working. base url always http in front end. manager always redirects to http]]> https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http#dis-post-553250 Quote from: nickf08 at Aug 21, 2017, 11:13 AM
Yes, correct, cloudflare is back on (on purpose). Thanks for checking though.
This doesn't have anything to do with Cloudflare, definitely a server (or less likely an Evo) thing. I have changed Evo sites to https successfully before whilst still on cloudflare and it had no bearings in those instances.

ps can you please remove that link to the site. The SEO team doesn't want any extra links floating around. I will edit my post with the links once resolved. Thanks Andy.

Removed!]]>
andytough Aug 21, 2017, 11:21 AM https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http#dis-post-553250
<![CDATA[Re: change to https not working. base url always http in front end. manager always redirects to http]]> https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http#dis-post-553249 This doesn't have anything to do with Cloudflare, definitely a server (or less likely an Evo) thing. I have changed Evo sites to https successfully before whilst still on cloudflare and it had no bearings in those instances.

ps can you please remove that link to the site. The SEO team doesn't want any extra links floating around. I will edit my post with the links once resolved. Thanks Andy.]]>
nickf08 Aug 21, 2017, 11:13 AM https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http#dis-post-553249
<![CDATA[Re: change to https not working. base url always http in front end. manager always redirects to http]]> https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http#dis-post-553248 http://www.doesitusecloudflare.com/ detects that your site is using Cloudflare.

This might be because you have turned it back on again! But if not then maybe it is running despite you telling it not to and is causing confusion with your testing?]]>
andytough Aug 21, 2017, 10:56 AM https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http#dis-post-553248
<![CDATA[Re: change to https not working. base url always http in front end. manager always redirects to http]]> https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http#dis-post-553247 try (they are hopeless) and get them to help. Will advise back with a solution if I get one.]]> nickf08 Aug 21, 2017, 08:04 AM https://forums.modx.com/thread/102707/change-to-https-not-working-base-url-always-http-in-front-end-manager-always-redirects-to-http#dis-post-553247