CodeIgniter Forums
Excluding sub directory name from url - 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: Excluding sub directory name from url (/showthread.php?tid=57248)



Excluding sub directory name from url - El Forum - 02-28-2013

[eluser]Unknown[/eluser]
My application is located in a sub directory called 'public'. I am using CodeIgniter's site_url() function to generate links, but I would like to exclude the name of the sub directory from the generated link path (i.e. I would like 'http://localhost/xindi-php/' instead of 'http://localhost/xindi-php/public/'). What is the best way to achieve this?

Thank you in advance for your help.



Excluding sub directory name from url - El Forum - 02-28-2013

[eluser]Aken[/eluser]
Change your base_url config setting.