0

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.

1 Answers1

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