Welcome Guest, Not a member yet? Register   Sign In
Redirect strips trailing slash
#2

[eluser]matt.asbury[/eluser]
It's ok guys, I traced the function through the framework and found that the trailing slash was being stripped in site_url() in the Config.php file of system/libraries:
Code:
$suffix = ($this->item('url_suffix') == FALSE) ? '' : $this->item('url_suffix');
return $this->slash_item('base_url').$this->slash_item('index_page').trim($uri, '/').$suffix;
and I needed to set what the suffix should be in the config file:
Code:
$config['url_suffix'] = "/";

Thanks


Messages In This Thread
Redirect strips trailing slash - by El Forum - 11-05-2010, 08:59 AM
Redirect strips trailing slash - by El Forum - 11-05-2010, 09:40 AM
Redirect strips trailing slash - by El Forum - 11-12-2010, 04:43 PM
Redirect strips trailing slash - by El Forum - 12-30-2010, 04:57 PM
Redirect strips trailing slash - by El Forum - 01-17-2011, 11:13 PM
Redirect strips trailing slash - by El Forum - 01-28-2011, 10:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB