Tuesday, August 20, 2013

Redirect HTTPS Homepage to http for website

Considering the SEO ratings how can we have one home page , i.e redirect https home page to http.



Here is the Redirection Logic will will do the magic of redirecting the HTTPS homepage to HTTP and continue to work the remaining HTTPS functionalities in a site like secure sign-in and secure checkout if its a payment processing website.

Modify your httpd.conf of Apache server and add the below lines with in the Virtual host.

<VirtualHost  www.example.com:443>
RewriteEngine on
RewriteCond %{SERVER_PORT} 443
RewriteRule ^(|/)$ http://%{HTTP_HOST}/ [L,R=301]

---------
---------------
------------
</VirtualHost>

After the Apache server restart, now all of your https home page requests should be redirecting to http and have greater SEO rankings for your homepage :)

0 comments:

Post a Comment