Andre Daub
Active member
Hi there,
we just planing to move our project to a nother rootfolder/subfolders.
But we have some problems of XenoForo to read the BaseUrl correct, so the CSS
and links are not correct connected.
We already found the problem in the ZEND Framework where the base url is created by the function
setBaseUrl() Http.php.
Our old folder roots are:
myportal.com/ (wordpress)
myportal.com/forum/ (xenoforo)
New folders are:
myportal.com/ (shop)
myportal.com/_subportal/ (wordpress)
myportal.com/_subportal/forum/ (xenoforo)
We rewrite the access to Blog/Forum in this way:
myportal.com/ (shop)
myportal.com/blog/ (wordpress) ReWrite to => myportal.com/_subportal/
myportal.com/forum/ (xenoforo) ReWrite to => myportal.com/_subportal/
so the realy physical path is "myportal.com/_subportal/forum/" but we if we open the forum site over the rewrited path he can´t get the base url because he can´t find the correct path in the ZEND Framework:
ZEND FRAMEWORK (http.php line 523)
if (empty($basename) || !strpos($truncatedRequestUri, $basename)) {
// no match whatsoever; set it blank
$this->_baseUrl = '/forum';
return $this;
}
Is it possible to set the BaseUrl in the config or other way(but not hardcoded)
We already tryed this from your FAQ:
$config['internalDataPath'] = 'forum';
$config['externalDataUrl'] = 'forum';
In the admin interface in settings from the forum we set the site url to:
myportal.com/forum/
When we open the AdminPanel over the realy physical url all is fine and in example
the <base href="http://myportal.com/_subportal/forum/" /> is correct setted and
all works.
Hope you can help us!
we just planing to move our project to a nother rootfolder/subfolders.
But we have some problems of XenoForo to read the BaseUrl correct, so the CSS
and links are not correct connected.
We already found the problem in the ZEND Framework where the base url is created by the function
setBaseUrl() Http.php.
Our old folder roots are:
myportal.com/ (wordpress)
myportal.com/forum/ (xenoforo)
New folders are:
myportal.com/ (shop)
myportal.com/_subportal/ (wordpress)
myportal.com/_subportal/forum/ (xenoforo)
We rewrite the access to Blog/Forum in this way:
myportal.com/ (shop)
myportal.com/blog/ (wordpress) ReWrite to => myportal.com/_subportal/
myportal.com/forum/ (xenoforo) ReWrite to => myportal.com/_subportal/
so the realy physical path is "myportal.com/_subportal/forum/" but we if we open the forum site over the rewrited path he can´t get the base url because he can´t find the correct path in the ZEND Framework:
ZEND FRAMEWORK (http.php line 523)
if (empty($basename) || !strpos($truncatedRequestUri, $basename)) {
// no match whatsoever; set it blank
$this->_baseUrl = '/forum';
return $this;
}
Is it possible to set the BaseUrl in the config or other way(but not hardcoded)
We already tryed this from your FAQ:
$config['internalDataPath'] = 'forum';
$config['externalDataUrl'] = 'forum';
In the admin interface in settings from the forum we set the site url to:
myportal.com/forum/
When we open the AdminPanel over the realy physical url all is fine and in example
the <base href="http://myportal.com/_subportal/forum/" /> is correct setted and
all works.
Hope you can help us!