View Single Post
  #4  
Old 05-16-2008, 05:39 AM
Watdaflip's Avatar
Watdaflip Watdaflip is offline
Brigadier General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 1,640
Default Re: changing over to https

Most of cpanels tools (like password protect directory, hotlink protection, ip banning, etc) are just little .htaccess code generators. Cpanel only provides you with... maybe 3-4% of what you can do with .htaccess

Heres code you can add to your .htaccess file that will redirect all http:// to https://
Code:
RewriteCond %{SERVER_PORT} ^80$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
Although, as Bethers has pointed out, you don't need to it on your entire site, any page that uses SSL is going to load slower then a page without it (the whole encryption/decryption routine takes time to do)
__________________

Register/Login Script
Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script
Reply With Quote