Dynamic WWW_ROOT [message #32192] |
Tue, 13 June 2006 22:21 |
blemish
Messages: 13 Registered: October 2005 Location: France
Karma: 0
|
Junior Member |
|
|
Hello boys,
My board is accessible either with HTTP or HTTPS.
The base href in fud templates always refer to HTTP.
What I would like : if I come with HTTPS, the base href should refer to HTTPS
Something like $WWW_ROOT = "http".(isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']=='on' ? 's':'')."://www.mysite.com/forums/"; in GLOBALS.php don't work, since (I think) it is used at compile time ... ?
Then, do I need to modify in compile.inc ? I mean, is it the only way to do it ?
Thank you very much.
[Updated on: Tue, 13 June 2006 22:23] Report message to a moderator
|
|
|
Re: Dynamic WWW_ROOT [message #32204 is a reply to message #32192] |
Wed, 14 June 2006 13:13 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
If you are using FUDforum 2.7.5, the WWW_ROOT is not compiled in, so your trick will work.
FUDforum Core Developer
|
|
|
|
|
|