PDA

View Full Version : SSL on vb5


dwkerr
11-11-2015, 08:12 PM
I have an ssl certificate on

www.selfhelpwithmore.com

Now in the root I have an .htaccess file that forces https on the whole site.

Now the forums are in
www.selfhelpwithmore.com/ez-forums

vb5 has its own .htaccess file in the ez-forums directory.

Now what the issue is when you go to

www.selfhelpwithmore.com/ez-forums

it does not go to https

but as soon as you click on anything in the forums it does go to https

I would like it to go to https even if doing a direct link at

www.selfhelpwithmore.com/ez-forums

Is the vb5 .htaccess countering the .htacess in the root directory of the site??

even though I changed the urls in the admin panel it will go https as soon as anything is clicked on, I would like it https as soon a you go to the forum page by a direct link.

shimei
11-11-2015, 08:40 PM
I added to my .htaccess the following: Redirect to https with .htaccess with a specific domain (https://www.christforums.org/forum/entertainment-fun/computers-technology/6684-redirect-to-https-with-htaccess-with-a-specific-domain)

Change my domain to yours.

Hope this help,
Shim

dwkerr
11-12-2015, 08:52 PM
I had similiar code. What appears to happen is if there is a .htaccess in sub folder it replaces the .htaccess in the root of the site. So in addition to forcing https in the root for the entire site, I had too add the code in that sub folder .htaccess file to force https in the sub folder

shimei
11-12-2015, 10:09 PM
That is correct. I have two domains, one running from root and the other from a subfolder. The code I provided only directs the root and allows a subfolder to run its own .htaccess rule.