![]() |
redirect() incorrectly adding a .html suffix [SOLVED] - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: redirect() incorrectly adding a .html suffix [SOLVED] (/showthread.php?tid=34728) |
redirect() incorrectly adding a .html suffix [SOLVED] - El Forum - 10-07-2010 [eluser]CoderReborn[/eluser] In one of my controllers, I end my index() method with Code: redirect('/profile/jsmith'); However, the redirection sends me to "/profile/jsmith.html" How do I get rid of the .html suffix that is incorrectly inserted? For a number of reasons, that is causing me problems. Thanks. redirect() incorrectly adding a .html suffix [SOLVED] - El Forum - 10-07-2010 [eluser]mikeymayhem[/eluser] Hey you havent got the suffix specified in your config/config.php file have you? |-------------------------------------------------------------------------- | URL suffix |-------------------------------------------------------------------------- | | This option allows you to add a suffix to all URLs generated by CodeIgniter. | For more information please see the user guide: | | http://ellislab.com/codeigniter/user-guide/general/urls.html */ $config['url_suffix'] = ""; redirect() incorrectly adding a .html suffix [SOLVED] - El Forum - 10-07-2010 [eluser]CoderReborn[/eluser] Yes, that was the problem. Thanks! |