how to redirect from https to http

imonboss

Supreme Member
Joined
Sep 9, 2015
Messages
1,311
Reaction score
426
I am not a technical nerd and never faced a problem like this ever before.
So, I kinds lost in here.
This is something I need to do and I need help from those who have coding knowledge and played with htaccess file before.
If i don't do this, i can't access my site at all which sucks due to ssl protocol error!
I would really appreciate if you guys help me solve this issue and regain access to my site.

Here goes:
Code:
# BEGIN GD-SSL
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_USER_AGENT} ^(.+)$
RewriteCond %{SERVER_NAME} ^yourdomain\.com$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Header add Strict-Transport-Security "max-age=300"
</IfModule>
# END GD-SSL

Thanks,
imonboss
 
Last edited:

tagwesa

Newbie
Joined
Feb 18, 2020
Messages
39
Reaction score
10
Firstly why do you want to redirect to http when google is now expecting most users to have https
 

sunseven

Power Member
Joined
Aug 5, 2009
Messages
554
Reaction score
371
Don’t redirect to http, do the opposite. Just Google htacess redirect
 

imonboss

Supreme Member
Joined
Sep 9, 2015
Messages
1,311
Reaction score
426
Firstly why do you want to redirect to http when google is now expecting most users to have https

Firstly why do you want to redirect to http when google is now expecting most users to have https

Don’t redirect to http, do the opposite. Just Google htacess redirect
I know. But i need to access my wp-admin for some reason. But without this, this is not possible.

PslgmJj.jpg

I am planning to move to another hosting provider and transfer my domain as well.
So, this is not gonna be a big deal in the end.
But, for now, I need this to happen.

Thanks,
imonboss
 

hideath

Jr. VIP
Jr. VIP
Joined
Jun 16, 2019
Messages
3,976
Reaction score
2,925
Website
tombelfort.io
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_USER_AGENT} ^(.+)$
RewriteCond %{SERVER_NAME} ^yourdomain\.com$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
To this >>

Code:
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{SERVER_NAME} ^yourdomain\.com$
 

moneyguru2013

Regular Member
Joined
Mar 13, 2013
Messages
1,815
Reaction score
557
Why not contact your hosting provider? I had a similar issue and i asked my hosting provider for help to fix it.
 

Fdiana

Junior Member
Joined
Jun 28, 2019
Messages
105
Reaction score
16
Make sure that under SSL Settings, Require SSL is not checked. Otherwise it will complain with 403.4.forbidden
 

Gogol

Jr. VIP
Jr. VIP
Joined
Sep 10, 2010
Messages
9,817
Reaction score
16,961
Website
twitter.com
I know. But i need to access my wp-admin for some reason. But without this, this is not possible.

PslgmJj.jpg

I am planning to move to another hosting provider and transfer my domain as well.
So, this is not gonna be a big deal in the end.
But, for now, I need this to happen.

Thanks,
imonboss
Are you behind cloudflare? Does your site work otherwise?
 

SiteTide

Regular Member
Joined
Nov 10, 2018
Messages
316
Reaction score
62
Website
sitetide.com
I’ll reach out to you to assist, there’s a few methods I can suggest but easier to just look into your setup.
 

stromind

Jr. VIP
Jr. VIP
Joined
Oct 1, 2018
Messages
901
Reaction score
250
Website
theonionhost.com
It is not recommended to use non https url now a days,
but you need to change base url of your wordpress from settings, and if you are using cloudflare disable the ssl from there.
 

pavan

Jr. VIP
Jr. VIP
Joined
Mar 30, 2008
Messages
2,454
Reaction score
677
since you are using wordpress don't mess with htaccess file. Just modify the base url under settings. Let me know if you need any help with that I can guide you
 

imonboss

Supreme Member
Joined
Sep 9, 2015
Messages
1,311
Reaction score
426
Your host should do it for you contact your host for this
Already assigned them the job :)

It is not recommended to use non https url now a days,
but you need to change base url of your wordpress from settings, and if you are using cloudflare disable the ssl from there.
Yeah i was using cloudflare but as par godaddy, cloudflare ssl has nothing to do with this since it was not even effect. Godaddy managed wordpress hosting does not allow any third party ssl installation. Just so you know i disabled that from cloudflare in the first place and Problem persists.

since you are using wordpress don't mess with htaccess file. Just modify the base url under settings. Let me know if you need any help with that I can guide you
Thanks for reaching out to help. I will let you know if i need further help. Right now my new hosting provider is taking care of the situation. Thanks
 

stromind

Jr. VIP
Jr. VIP
Joined
Oct 1, 2018
Messages
901
Reaction score
250
Website
theonionhost.com
I would highly recommend you to move the site from godaddy if thats the case,
because using non https site now a days is not considered as good. And believe it or not but these managed wordpress hosting is a marketing tactic,
Litespeed + wprocket cache is all enough to host a wordpress site.
both are enterprise level products. Litespeed enterprise has a specific plugin for wordpress, just inquire your hosting provider that if they support litespeed or not.
and for wprocket i would recommend gpl sites like @Festinger's vault.
 
Top