We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Forcing HTTPS for SSL | Forum

Topic location: Forum home » Support » General Questions
Rob R
Rob R Sep 7 '14
To force https, is it best to change config.php:

define('OW_URL_HOME', 'https://www.mysite.com/');

or add the following to the very beginning of htaccess:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.mysite.com/$1 [R,L]

or best to use both?

I noticed the config.php did not enforce https on Chrome.  Currently I'm using both.
The Forum post is edited by Rob R Sep 7 '14
tammy harris
tammy harris Sep 7 '14
 The htaccess rule dose not look right https should go port  I think 443  not 80
Rob R
Rob R Sep 7 '14
Thanks Tammy.  I got that straight from my host so I'll run it by them.

Although after a lot of searching (your posts popped up a lot), I'm starting to appreciate what a likely pain this process of HTTPS'ing my site will be.
tammy harris
tammy harris Sep 8 '14
It's a pain but in the long run worth it 

Sites everwhere are go full ssl 

Is better for member privacy security and for admin logins

tammy harris
tammy harris Sep 8 '14
Try remove the htaccess https rule and clear browser cashe
Rob R
Rob R Sep 8 '14
Oh my SSL certificate is being recognized, I jsut have a ton of erros I need to fix myself (a lot of HTTP links).

I was really just trying to get this done just so I can use Facebook inviter but it turns out I didn't set up canvas properly.  Ugh.  Lot of trouble for a friggin inviter lol.