Dear Sir,
From cPanel, I have setup let's encrypt and then the web hosting support team said:
"our domain is loading over https online. You can see that the certificate is installed here:
https://www.sslshopper.com/ssl-checker.html?hostname=http%3A%2F%2Fmyhotfb.com%2F
You should wait for several hours if the domain is not displayed online from your side, because of the worldwide A record propagation which was recently changed.
Regarding the mixed content warning on the site , you should change all your URLs from http to https if you want to see the green padlock in the browser.
If you want automatic HTTPS redirection online you can set this lines:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
in a .htaccess here:
https://us.cloudlogin.co/filemanager/#/www/myhotfb.com "
I really need help here. I would like to know the followings:
1. in .httaccess file where exactly do I add the following lines
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
2. In .httaccess file I see followings:
############################
# REWRITE RULES
<IfModule mod_rewrite.c>
RewriteEngine on
So do I only add
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
3. Should I change the url to https from http in Advance settings?
4. Do I have to perform any manual change in DB?
Kindly please help. Please, I would really appreciate correct step by step assistance.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Rohit Gupta@Rohit_1990_3676

Rohit Gupta - 1 like
- MyHoTFB.COM ®@myHoTFB

MyHoTFB.COM ® - 0 likes
- MyHoTFB.COM ®@myHoTFB

MyHoTFB.COM ® - 0 likes
You must log in to post replies.1. Look for this line in your .htacess file - "# If you must add RewriteRules to change hostname, add them directly below (above all the others)". You need to add the rewrite rule below this line.
2. This is how I handle my rewrite
The above code will do 3 things, first it will redirect all the http request to https, it will not add any https to any sub-domain and it will redirect all non-www request to www request.
3. Nope, you need to keep https in the advance setting otherwise it will lead to unnecessary redirection based on your .htaccess rewrite rule.
4. Nope, you don't have to do anything at database level.
Rohit Sir,
Thanks for your kind reply and detailed step by step instruction. I read it today just few mins back, but I have already made changes in a bit different way and its working, but now confused after reading your post that if I should change it the way you have detailed in your step by step instruction.
I would like to first share the way I have done it in Elgg 2.3.8.
1. First, I changed the http to https in advance option of Admin Menu. Saved it and ran an update. Logged into my DB and saw that "https" instead of http. At this stage my site was not automatically redirecting all request to https, but when I logged in, it showed https. Logged out and cleared the cookies. and same situation that its not automatically redirecting to https.
2. Secondly, to correct it, I edited the .httaccess file and added:
Immediately after
3. Saved the file. Ran an update, and now I see the followings:
a. All non www and http requests are automatically
redirectingto https://www.myhotfb.com/ as a standard. I also see a green lock.
3. Optionally, I updated the
elgg.cron.1min.plist file and changed the http toand then also updated google webmaster tools.
Now that you have read what i have done, please advice if I should make changes as per your detailed instruction. Just for your review, here is the complete .httaccess file, where I have added some extra MIMEs as well, but I don't think they are useful.
Rohit Sir,
My Site acting funny.... sometimes, it redirected non www to www but not always, as a result i got both types of redirection https: with www, and non www..Additionally, the green lock disappeared for a while, and then again came back, and even one time gave me warning that site is not properly configured for ssl.
so, i took you advice, and changed it to following
Note, the bottom two lines were already there and since you didn't mention anything, I kept it the way it was.
I have truncated the following lines which were suggested by the web hosting support.
Let's see what happens now. I hope it will work as you have suggested. But curious about one thing. Why did we turn of https for sub domain. What if I need to have https for my subdomain in future for some projects like dating.myhotfb.com? You have already helped me and educated me on https/ ssl. I would appreciate if you kindly educate me a little more about what advantage did we gain by turning off https for sub domain.
Thanking you in anticipation.