Redirecting http:// to https:// in Apache Server

Sometimes you may want to redirect http:// to https://  to force users through SSL encrypted pages

For this you need to

rewrite your .htaccess file in Apache

First Open your .htaccess  file and write this

Redirect permanent http://www.site.com  https://www.site.com

Now any visitor coming to your site by typing http://www.site.com would be automatically redirected to https://www.site.com…

This entry was posted on Friday, November 21st, 2008 at 2:12 am and is filed under Apache Server. You can follow any responses to this entry through the RSS 2.0 feed. Responses are currently closed, but you can trackback from your own site.

Comments are closed.