Prepares the base URL.
string
Overrides Request::prepareBaseUrl
protected function prepareBaseUrl() {
$baseUrl = $this->server
->get('SCRIPT_NAME');
if (false === strpos($this->server
->get('REQUEST_URI'), $baseUrl)) {
// assume mod_rewrite
return rtrim(dirname($baseUrl), '/\\');
}
return $baseUrl;
}