PDA

View Full Version : using ssl certificate


PWillard
09-12-2011, 03:11 AM
hello,
I have installed an ssl certificate then I changed some settings from (Site Name / URL / Contact Details)

Forum URL: https://mysite.com
Always use Forum URL as Base Path: No

when I access using https and browse the forum clicking on multiple pages it stays on https which is good but when I access only with http and click multiple pages it changes into https.. what can I do to prevent that?

if I change to, I get warning saying part of the site is not encrypted.
Forum URL: http://mysite.com

HMBeaty
09-12-2011, 03:23 AM
Try adding this to your .htaccess in your root directory:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://mysite.com/$1 [R,L]

PWillard
09-12-2011, 04:44 AM
but what im trying to do is if its accesses secured then stay secured if accessed normally then stay normally, I dont want to switch between.