SEO based urls : CodeIgniter routes

You can use this code for SEO urls

 
//this section enables you to use some controllers 
$route['admin/(:any)'] = "admin/$1";    
$route['contact/(:any)'] = "contact/$1";
$route['auth/(:any)'] = "auth/$1";
$route['testimonials/(:any)'] = "testimonials/$1";
 
//else everything in url will handle by this pro controller's index function
$route['(:any)'] = "pro/index";

May be when you need this you can understand this logic. crazy na ;)

Popularity: 89% [?]

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

Dec30

Leave a Reply