![]() |
Hiding Default Controller Name in Codeigniter - 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: Hiding Default Controller Name in Codeigniter (/showthread.php?tid=52686) |
Hiding Default Controller Name in Codeigniter - El Forum - 06-21-2012 [eluser]PhPCoder[/eluser] When my website opens for the first time , it directly goes to this address: http://www.website.com/tr/main But I want my link to be like this: http://www.website.com/ I can't remove "tr/main" links. How can I solve this problem? Php Code: Code: $route['default_controller'] = "main"; Htaccess Code: Code: RewriteEngine On Hiding Default Controller Name in Codeigniter - El Forum - 06-21-2012 [eluser]Otemu[/eluser] Check out this post here should solve all your problems Hiding Default Controller Name in Codeigniter - El Forum - 06-21-2012 [eluser]PhPCoder[/eluser] I had looked that link before. But unfortunately, I couldn't find any answer there. Hiding Default Controller Name in Codeigniter - El Forum - 06-21-2012 [eluser]Otemu[/eluser] Then try this ;-) What have you set as your baseurl? Hiding Default Controller Name in Codeigniter - El Forum - 06-21-2012 [eluser]PhPCoder[/eluser] Code: My base url -> $config['base_url'] = 'http://examle.com/'; |