CodeIgniter Forums
quick question - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: quick question (/showthread.php?tid=37025)



quick question - El Forum - 12-23-2010

[eluser]webstudent_101[/eluser]
so in CI i was able to remove the need of the index.php in my url using .htaccess

for ex. my url is "http://localhost/website_name/html/"
is it possible to remove the "/website_name/html" using .htaccess?

trying to study using .htaccess with no luck yet..

thanks for the help!! Smile


quick question - El Forum - 12-23-2010

[eluser]Twisted1919[/eluser]
You need to use routes for this. Check the user guide .


quick question - El Forum - 12-24-2010

[eluser]pickupman[/eluser]
Depends if the /website_name/html/ is part of your folder structure. If it is, you will need to have something in your document root's .htaccess to be able to forward those pages to your subfolder. If you have CI in your document root folder, and have website_name controller, then you would routes like:

Code:
$route['default_controller'] = 'website_name';