Home page routing with $route['(:any)'] |
[eluser]chavansoft[/eluser]
Hello, Any one please help me figure out what should i do for the following I have a Website in localhost i have lots of pages like http://localhost/current/b/index.php/Category http://localhost/current/b/index.php/news http://localhost/current/b/index.php/page/About-Us http://localhost/current/b/index.php/contactus Home is my Default controller Now i have certain products say saloon, carstation, toothbrush and so on... i need this to be like the following url http://localhost/current/b/index.php/saloon http://localhost/current/b/index.php/toothbrush http://localhost/current/b/index.php/ I have tried using this $route['(:any)'] = "home"; in the below one $route['default_controller'] = "home"; $route['scaffolding_trigger'] = ""; $route['news/:any'] = "news/index"; $route['Categories/:any'] = "Categories/index"; $route['product/:any'] = "product/index"; $route['page/:any'] = "page/index"; $route['search/:any'] = "search/index"; $route['(:any)'] = "home"; this does not allow the other pages work. Whatever url i click it goes to home page. Please help me to fix this error Thanks Regards Chavan |
Messages In This Thread |
Home page routing with $route['(:any)'] - by El Forum - 02-27-2011, 02:24 PM
Home page routing with $route['(:any)'] - by El Forum - 02-27-2011, 03:53 PM
Home page routing with $route['(:any)'] - by El Forum - 02-28-2011, 12:22 AM
Home page routing with $route['(:any)'] - by El Forum - 02-28-2011, 01:16 AM
Home page routing with $route['(:any)'] - by El Forum - 02-28-2011, 03:44 AM
Home page routing with $route['(:any)'] - by El Forum - 02-28-2011, 04:00 AM
Home page routing with $route['(:any)'] - by El Forum - 02-28-2011, 04:04 AM
Home page routing with $route['(:any)'] - by El Forum - 02-28-2011, 04:05 AM
|