Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Server DOCUMENT_ROOT used instead of FCPATH #4

Open
christoferd opened this issue Aug 18, 2013 · 1 comment
Open

Server DOCUMENT_ROOT used instead of FCPATH #4

christoferd opened this issue Aug 18, 2013 · 1 comment

Comments

@christoferd
Copy link

In footer_js.php and head.php
Server DOCUMENT_ROOT used instead of FCPATH
Causes issues when installing this in a sub-folder, and not using "web" for the root.

@mckaygerhard
Copy link

this are not necesary, solved by defining right way the index files:

$config['base_url'] = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
$config['base_url'] .= '://' . $_SERVER['HTTP_HOST'];
$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants