CodeIgniter Forums

Full Version: how to route country region state
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
so this is my first post and would like to know how i would create a routeĀ 

so i have a country controller.

localhost/country/india

this page displays a list of regions in india.

so i have a controllerĀ 

localhost/region/southernindia

i want my url to look like this

localhost/india/southernindia

what would be best practice
@lancomm,

The CI documentation should be helpful to you ( https://codeigniter.com/user_guide/gener...ri-routing ). Also, you might want to take a look at this too ( https://www.codeigniter.com/userguide3/g...niter-urls ).