Author

Topic: Issue in SSL (HTTP to HTTPS) Please help (Read 192 times)

copper member
Activity: 2940
Merit: 4101
Top Crypto Casino
October 17, 2018, 01:15:34 PM
#6
Purchased SSL and installed successfully from Cpanel. But still, my website does not redirect from HTTP to HTTPS.
please guide me.

You don't need to install it from your CPanel only. You have to enable it in you WP panel too.
Somewhere in "General settings" > "your website url"

The setting needs to be changed manually from "http:// thewebsitename.com" to "https:// the websitename.com"
Click update and that it. You can so remove the plugin installed before.
hero member
Activity: 1582
Merit: 759
October 16, 2018, 11:54:45 PM
#5
My website is in WordPress.
Yes, it was a .htaccess file issue. I have applied this code:Redirect HTTP to HTTPS using .htaccess Now my site is properly redirecting.
Thanks all for the replay.

Glad to hear! Probably a good idea to lock this thread if your issue is solved!

Bottom left Smiley
newbie
Activity: 2
Merit: 0
October 16, 2018, 11:30:13 PM
#4
My website is in WordPress.
Yes, it was a .htaccess file issue. I have applied this code:Redirect HTTP to HTTPS using .htaccess Now my site is properly redirecting.
Thanks all for the replay.
hero member
Activity: 1582
Merit: 759
October 15, 2018, 11:21:11 AM
#3
Please give more details like are you using wordpress or is it just html or etc.

You can force https by editing .htaccess file

Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Change image, css, js etc. files from http to https from code source.

If you are using wordpress you can go to wp-admin -> Settings -> General and change the site url and wp address from http to https and so on.

+1, this is the correct way to force redirects to HTTPS.

Just ensure you don't use RewriteEngine On twice, if Wordpress, your file should look like this:

Code:
# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# END WordPress
newbie
Activity: 3
Merit: 2
October 15, 2018, 09:11:12 AM
#2
Please give more details like are you using wordpress or is it just html or etc.

You can force https by editing .htaccess file

Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Change image, css, js etc. files from http to https from code source.

If you are using wordpress you can go to wp-admin -> Settings -> General and change the site url and wp address from http to https and so on.
newbie
Activity: 2
Merit: 0
October 15, 2018, 01:23:27 AM
#1
Purchased SSL and installed successfully from Cpanel. But still, my website does not redirect from HTTP to HTTPS.
please guide me.
Jump to: