modules htaccess directory index - 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: modules htaccess directory index (/showthread.php?tid=57200) |
modules htaccess directory index - El Forum - 02-25-2013 [eluser]the_unforgiven[/eluser] How can i specify what i want the directory index to be? Currently have the main url has: http://localhost/bb/static/home which is what i want it to point to when just navigating to localhost/bb/ but it looks for the index.php file but i dont want that. I have this in my htaccess at present. Code: <IfModule mod_rewrite.c> modules htaccess directory index - El Forum - 02-28-2013 [eluser]the_unforgiven[/eluser] Anyone? modules htaccess directory index - El Forum - 02-28-2013 [eluser]the_unforgiven[/eluser] So basically when I nav to localhost/bb/ i need it show the home page which is currently localhost/bb/site/index Any idea's on this would be greatly appreciated. modules htaccess directory index - El Forum - 02-28-2013 [eluser]Ochetski[/eluser] Is it another page or codeigniter one? If it's codeigniter. You can set the default route on routes.php config file to this place... modules htaccess directory index - El Forum - 02-28-2013 [eluser]the_unforgiven[/eluser] This image show my structure: http://dug.im/aa326 Modules > Site > Site Controller has method index which i want to show when navigating to localhost/bb/ And in my routes i have: Code: $route['default_controller'] = 'site/site'; Bu this $route['(:any)'] then won't allow access to localhost/bb/admin which is the CMS i have built. Which obviously needs to be accessibile. via this route: $route['admin'] = 'sessions/index'; |