Welcome Guest, Not a member yet? Register   Sign In
Problem in redirect which is defined in URL_HELPER file of ci
#1

[eluser]crimsun[/eluser]
Hello Team the redirect function which is declared in url_helper by default that giving me some problem

when i print $uri its added symbol ? in that please check that
if ( ! function_exists('redirect'))
{
function redirect($uri = '', $method = 'location', $http_response_code = 302)
{
echo $uri;
if ( ! preg_match('#^https?://#i', $uri))
{
$uri = site_url($uri);
}
echo $uri;exit;
switch($method)
{
case 'refresh' : header("Refresh:0;url=".$uri);
break;
default : header("Location: ".$uri, TRUE, $http_response_code);
break;
}
exit;
}
}

Is this because of htaccess problem so please help me suggest me solution
#2

[eluser]Nicolas Santos[/eluser]
hi,

you may join your htaccess and your config.php - uri_protocol to this post. might help

simple curiosity you don t have url_suffix with the ? value ? :-)




Theme © iAndrew 2016 - Forum software by © MyBB