I removed SSL from my wp site, but some https version of pages are still indexed in google including home page for some keywords and when i visit these https pages it gives 404 error, is there any way to 301 redirect these https pages to http version ? Please help, it is effecting my site ranking as https version shows meta error in google results :- A description for this result is not available because of this site's robots.txt , I tried editing htaccess but nothing helped.
Asked
Active
Viewed 189 times
0
-
Use Let's Encrypt instead ;-) – hjpotter92 Mar 10 '16 at 15:28
1 Answers
0
You could add this to your .htaccess
which would accomplish redirecting all https to http (via https://stackoverflow.com/a/13000059/6019768)
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
But if you want to have more control over https
for say wp-admin
, check this link out Redirect WordPress Front End for a function you'd add to your functions.php
.

Community
- 1
- 1

fostertime
- 565
- 5
- 12
-
this is not working, i tried this earlier, it worked when moved to cloud from shared then it' stopped working .. – Gaurav Singh Mar 12 '16 at 03:13