Home / Control Panel / Cpanel / WordPress Redirect Https To Http With Htaccess

WordPress Redirect Https To Http With Htaccess

Hi all,
Nobody know how to redirect a https: request to http:// using .htaccess in wordpress, today I share some information related to this problem.
You can redirect all website pages from https to http. It will be redirect only when you open the page with https.

First write your code in .htaccess file, after first check few URLs to see if it’s even necessary. If your code is perfectly working then you can implement this code into your work.
For Example, try to request your site url using https// prefix and see what happens. If your site automatically redirect to http:// version of the page, then your code is perfectly working and good.

See Example Below
https://prittytimes.com Redirect to http://prittytimes.com
https://prittytimes.com/page1/ Redirect to http://prittytimes.com/page1/
https://prittytimes.com/page2/ Redirect to http://prittytimes.com/page2/

Open .htaccess in root folder
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Replace with Following code
RewriteEngine On

RewriteCond %{SERVER_PORT} ^443$ [OR] RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

RewriteBase /
RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.

Leave a Reply

Your email address will not be published. Required fields are marked *

Social Media Auto Publish Powered By : XYZScripts.com