Title: Issue in SSL (HTTP to HTTPS) Please help Post by: sohampansuriya on October 15, 2018, 06:23:27 AM Purchased SSL and installed successfully from Cpanel. But still, my website does not redirect from HTTP to HTTPS.
please guide me. Title: Re: Issue in SSL (HTTP to HTTPS) Please help Post by: UluBey on October 15, 2018, 02:11:12 PM 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 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. Title: Re: Issue in SSL (HTTP to HTTPS) Please help Post by: Initscri on October 15, 2018, 04:21:11 PM 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 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 Title: Re: Issue in SSL (HTTP to HTTPS) Please help Post by: sohampansuriya on October 17, 2018, 04:30:13 AM My website is in WordPress.
Yes, it was a .htaccess file issue. I have applied this code:Redirect HTTP to HTTPS using .htaccess (https://www.johnpatel.com/redirect-http-to-https/) Now my site is properly redirecting. Thanks all for the replay. Title: Re: Issue in SSL (HTTP to HTTPS) Please help Post by: Initscri on October 17, 2018, 04:54:45 AM My website is in WordPress. Yes, it was a .htaccess file issue. I have applied this code:Redirect HTTP to HTTPS using .htaccess (https://www.johnpatel.com/redirect-http-to-https/) 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 :) Title: Re: Issue in SSL (HTTP to HTTPS) Please help Post by: LeGaulois on October 17, 2018, 06:15:34 PM 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. |