CodeIgniter Forums
help!how to use 'redirect' to retrun a url like 'listview/index/' not "listview/index" - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: help!how to use 'redirect' to retrun a url like 'listview/index/' not "listview/index" (/thread-2762.html)



help!how to use 'redirect' to retrun a url like 'listview/index/' not "listview/index" - El Forum - 08-23-2007

[eluser]Unknown[/eluser]
Code:
function update(){
        $this->get_result->doupdate();
        //echo "sucess";
        redirect('listview/index/');
    }


it returns a url "index.php/listview/index"
But, that I want is "index.php/listview/index/"

I am so sorry my English is very poor!!
Have you known my doctrine's?
thank you


help!how to use 'redirect' to retrun a url like 'listview/index/' not "listview/index" - El Forum - 08-23-2007

[eluser]Phil Sturgeon[/eluser]
You could try in the config settings changing:

Code:
$config['url_suffix'] = '/';