if ($args) {
if($route == 'common/home') {
if($connection == 'NONSSL') {
$url = HTTP_SERVER.str_replace('&', '&', '?' . ltrim($args, '&'));
return $url;
} else {
$url = HTTPS_SERVER.str_replace('&', '&', '?' . ltrim($args, '&'));
return $url;
}
} else {
$url .= str_replace('&', '&', '&' . ltrim($args, '&'));
}
} else {
if($route == 'common/home') {
if($connection == 'NONSSL') { return HTTP_SERVER; }
else { return HTTPS_SERVER; }}}
return $this->rewrite($url);