• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Removing sub-controller folder name from URL

#1
[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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.