Bitcoin Forum
May 18, 2024, 03:32:14 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Issue in SSL (HTTP to HTTPS) Please help  (Read 175 times)
sohampansuriya (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile WWW
October 15, 2018, 06: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.
UluBey
Newbie
*
Offline Offline

Activity: 3
Merit: 2


View Profile
October 15, 2018, 02:11:12 PM
Merited by TryNinja (1), Initscri (1)
 #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.
Initscri
Hero Member
*****
Offline Offline

Activity: 1554
Merit: 759


View Profile WWW
October 15, 2018, 04:21:11 PM
 #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
<IfModule mod_rewrite.c>
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]
</IfModule>
# END WordPress

----------------------------------
Web Developer. PM for details.
----------------------------------
sohampansuriya (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile WWW
October 17, 2018, 04:30:13 AM
 #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.
Initscri
Hero Member
*****
Offline Offline

Activity: 1554
Merit: 759


View Profile WWW
October 17, 2018, 04:54:45 AM
 #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

----------------------------------
Web Developer. PM for details.
----------------------------------
LeGaulois
Copper Member
Legendary
*
Offline Offline

Activity: 2898
Merit: 4095


Top Crypto Casino


View Profile
October 17, 2018, 06: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.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!