Force SSL rewrite RuleSometimes you may need to make sure that the user is browsing your site over securte connection. An easy to way to always redirect the user to secure connection (https://) can be accomplished with a .htaccess file containing the following lines:
RewriteEngine On Please, note that the .htaccess should be located in the web site main folder. In case you wish to force HTTPS for a particular folder you can use:
RewriteEngine On The .htaccess file should be placed in the folder where you need to force HTTPS. Server is hosted by Alanstudio Linux Operating System Recommend screen resolution 1024 x 768 / IE / FireFox Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved. |