how to redirect from https to http

imonboss

Supreme Member
Joined
Sep 9, 2015
Messages
1,395
Reaction score
464
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:
Are you using word press or any other cms ?
 
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
 
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

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
 
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$
 
Why not contact your hosting provider? I had a similar issue and i asked my hosting provider for help to fix it.
 
Make sure that under SSL Settings, Require SSL is not checked. Otherwise it will complain with 403.4.forbidden
 
I know. But i need to access my wp-admin for some reason. But without this, this is not possible.

PslgmJj

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?
 
I’ll reach out to you to assist, there’s a few methods I can suggest but easier to just look into your setup.
 
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.
 
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
 
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
 
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.
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock