Sometimes you might want your clients to run only through your ssl protected version of your homepage or shop. In this case it is necessary to redirect all visitors that open the http:// based (non ssl) url of your site to the https:// based (ssl protected) url of your site. The following snipplet for your apache vhost configuration does exactly this.(via )

RewriteEngine on
 
RewriteCond %{SERVER_PORT}      !^443$
 
RewriteRule ^/(.*)              https://%{SERVER_NAME}/$1 [L,R]

Bookmark this!

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • BlinkList
  • blogmarks
  • co.mments
  • del.icio.us
  • Digg
  • Fark
  • Furl
  • MisterWong
  • NewsVine
  • Reddit
  • Spurl
  • StumbleUpon
  • TailRank
  • Technorati

Submit your comment

vision22.net

Copyright © 2007