Https to http redirection done in .htaccess file, but still it is not redirecting to my http domain when i use https

Hi,

I used code in .htaccess file in cpanel to redirect from https:// to http://, i have not purchased ssl so that i redirect it using code, but still it is not redirecting, when i ask my hosting provider to redirect it he want me to buy ssl.

But i have other site as well which is redirecting from https:// to http.

Kindly give me someother option o redirect my domain

Welcome to the forums, @nancykaren. Is there something wrong with the code you used in your .htaccess file to redirect? It would be helpful if you could show us this code here.

You do not need to purchase an SSL Cert. There are numerous free options available. Here is one https://www.sslforfree.com/

hi,

@ WebMachine My site is a wordpress site and am using the code

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} libwww-perl.* 
RewriteRule .* ? [F,L]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Also @benanamen thank you for your response but i don’t want my site should be in https i just want is when i use https for non https site it should be redirect to non http site.

Am expecting some good options.

you can use through mod rewrite as below.

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.