CodeIgniter Forums

Full Version: Removing sub-controller folder name from URL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]veledrom[/eluser]
Hi,

I have many sub-folders under main controller folder. When I call a controller, the name of the respective sub-folder appear in URL. How can I remove the name of sub-folder from URL?

Thanks

<b>Examples:</b>

Structure: applications/controllers/<b>admin</b>/my_controller.php
Appears as: http://localhost/index.php/<b>admin</b>/my_controller
Should appear as: http://localhost/index.php/my_controller

Structure: applications/controllers/<b>login</b>/my_controller.php
Appears as: http://localhost/index.php/<b>login</b>/my_controller
Should appear as: http://localhost/index.php/my_controller

Structure: applications/controllers/<b>menus</b>/my_controller.php
Appears as: http://localhost/index.php/<b>menus</b>/my_controller
Should appear as: http://localhost/index.php/my_controller