phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

Please advise about http https


 
Search this topic... | Search General Support... | Search Box
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Author Message
bengurion
Board Member



Joined: 16 Sep 2018

Posts: 19



PostPosted: Thu Jan 03, 2019 2:29 am 
Post subject: Please advise about http https

I transited all forum to https, but if i get to urls directly without https like - http://sitename.com/forum2.html
Then all the urls on the page are "http"
How to manually set them all to https even if i somehow i opened a http version?

Could not find anything in viewforum.php or viewforum_body.tpl
Back to top
Vendethiel
Board Member



Joined: 26 Oct 2014

Posts: 119



PostPosted: Thu Jan 03, 2019 2:34 pm 
Post subject: Re: Please advise about http https

It's a bit counterintuitive, but the setting you want to alter for this is the "secure cookie" one.
_________________
Developer on EzArena, the ADR premod.
Developer on Icy Phoenix, the phpBB hybrid cms.
Developer on IntegraMOD, the full-featured premod.
Help me archive premods on github! (fixed for recent PHPs).
Back to top
bengurion
Board Member



Joined: 16 Sep 2018

Posts: 19



PostPosted: Thu Jan 03, 2019 5:32 pm 
Post subject: Re: Please advise about http https

Vendethiel wrote:
It's a bit counterintuitive, but the setting you want to alter for this is the "secure cookie" one.


Code:
$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';


Once i added it to my included code and just changed http on https.
It helped. The urls in my included code started to be https anytime.
But in the main engine i don't really know where to place this string or change an old one. icon_sad.gif
Tried in functions.php but nothing changed.
Back to top
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 578
Location: North West UK


flag
PostPosted: Thu Jan 03, 2019 7:37 pm 
Post subject: Re: Please advise about http https

Does he not mean Admin Control Panel >>General Admin>>Configuration

If you look towards the bottom of the "Page" then there is
Quote:
Cookie secure
If your server is running via SSL, set this to enabled, else leave as disabled

Two options Disabled and Enabled

Jim

_________________
The truth is out there.
Unfortunately they will not let you anywhere near it!
Back to top
bengurion
Board Member



Joined: 16 Sep 2018

Posts: 19



PostPosted: Fri Jan 04, 2019 5:19 pm 
Post subject: Re: Please advise about http https

Jim_UK wrote:
Does he not mean Admin Control Panel >>General Admin>>Configuration

If you look towards the bottom of the "Page" then there is
Quote:
Cookie secure
If your server is running via SSL, set this to enabled, else leave as disabled

Two options Disabled and Enabled

Jim


It only kicks off logged in users faster, but does not change urls. icon_wink.gif
I mean that the first part of url is somehow generated, and if the page is with http:/ than all the links on it are relative to the root path. I wanted to rewrite it firmly. So that full url is formed.
I managed to do this with Topics urls inside each forum.
I changed this in viewforum.php and so fixed urls. But links to pages and to the "last answer" are all the same - relative root http://
Code:
         'U_VIEW_TOPIC' => 'https://mysite.com/' . $view_topic_url . "",)
Back to top
Display posts from previous:   
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0278 seconds using 15 queries. (SQL 0.0027 Parse 0.0008 Other 0.0242)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo