HTTPS

Post Reply
rmcdonald
Investor
Investor
Posts: 417
Joined: 19 Dec 2018, 02:33
Name: Robert McDonald
Location: Auckland, New Zealand
Company Name: Unicloud
Contact:

HTTPS

Post by rmcdonald »

Is it possible to change the htaccess file to force the load through HTTPS or be able to have this as a setting in the configuration, it seems everytime we update we loose the forced https load ?
rmcdonald
Investor
Investor
Posts: 417
Joined: 19 Dec 2018, 02:33
Name: Robert McDonald
Location: Auckland, New Zealand
Company Name: Unicloud
Contact:

Re: HTTPS

Post by rmcdonald »

As part of this it would be good to be able to load the favicon in using configuration too
User avatar
support
Site Admin
Posts: 6231
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: HTTPS

Post by support »

You can add next lines in .htaccess to force https redirect

Code: Select all

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
But note .htaccess file and server/config.php files are rewrite during update so you don't have to rewrite them if you did any changes in them.
rmcdonald
Investor
Investor
Posts: 417
Joined: 19 Dec 2018, 02:33
Name: Robert McDonald
Location: Auckland, New Zealand
Company Name: Unicloud
Contact:

Re: HTTPS

Post by rmcdonald »

Could this be added to system configuration ?
User avatar
support
Site Admin
Posts: 6231
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: HTTPS

Post by support »

No, these lines works in htaccess only.
rmcdonald
Investor
Investor
Posts: 417
Joined: 19 Dec 2018, 02:33
Name: Robert McDonald
Location: Auckland, New Zealand
Company Name: Unicloud
Contact:

Re: HTTPS

Post by rmcdonald »

No I mean can you update the htaccess file by adding a switch on the application configuration page to say you want to force https load ? so the system would update the htaccess file ?
rmcdonald
Investor
Investor
Posts: 417
Joined: 19 Dec 2018, 02:33
Name: Robert McDonald
Location: Auckland, New Zealand
Company Name: Unicloud
Contact:

Re: HTTPS

Post by rmcdonald »

When I added those lines to htaccess I got this error

Rukovoditel version 2.6.1 or greater is required for Extension 2.6.1. Please update your version of Rukvoditel.


Went away when I removed them ?
User avatar
support
Site Admin
Posts: 6231
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: HTTPS

Post by support »

rmcdonald wrote: 20 May 2020, 00:42 Rukovoditel version 2.6.1 or greater is required for Extension 2.6.1. Please update your version of Rukvoditel.
To update app you have to update core and extension. They are related.
rmcdonald
Investor
Investor
Posts: 417
Joined: 19 Dec 2018, 02:33
Name: Robert McDonald
Location: Auckland, New Zealand
Company Name: Unicloud
Contact:

Re: HTTPS

Post by rmcdonald »

They are both running on 2.7 beta , however this error showed when I changed the htaccess file
User avatar
support
Site Admin
Posts: 6231
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: HTTPS

Post by support »

Sorry, have no ideas. This rules just redirect to https if it's not.
Post Reply