Forums | Mahara Community

Open Discussion /
HtAccess from http to https


22 December 2017, 8:29 PM

Hi,

My SSL certificate was upgraded to https, but the Mahara site looks weird with https. I tired to add what I add to Moodle htacess and configphp, but it didn't work:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

What is the code and where should I add it so that https:// looks the same as http?

Thank you. 

 

 

 

23 December 2017, 6:47 PM

I figured it out. In the config.php, there is a line starting with $cfg->wwwroot.

That line needs to be set to either https or http.

I updated the config to use https and the site appears to be loading properly.

Kristina Hoeppner's profile picture
Posts: 3618

09 January 2018, 9:26 AM

Hello Nellie,

Your Mahara instance would have "looked weird", i.e. not have the stylesheet applied because all files still pointed to http. By changing the wwwroot in the config file (or in the database) to the https site, that issue would have been rectified.

Cheers

Kristina

 

Uwe Schmitt's profile picture
Posts: 1

08 January 2018, 8:31 AM

Hi Mrs. Deutsch,

where can I find the .htaccess-file at my installation. I´ve searched all files and folders, there is no one …

Regards
Uwe Schmitt

Kristina Hoeppner's profile picture
Posts: 3618

09 January 2018, 9:27 AM

Hello Uwe,

You do not need an htaccess file.

Cheers

Kristina

 

5 results