برای انتقال https به http تنها کافیست از کد دستوری زیر در فایل .htaccess استفاده نمایید.
# Redirect HTTPS to HTTP
RewriteCond %{HTTP:X-Forwarded-Proto} =https
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
یا از کد زیر
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
در سرور های ویندوز نیز می توانید با ویرایش فایل web.config و قرار دادن رول زیر این کار را انجام دهید
<configuration> <system.webServer> <rewrite> <rules> <rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> </conditions> <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" /> </rule> </rules> </rewrite> </system.webServer> </configuration>
منبع: بوک سئو