SEO Friendly URL in Codeigniter

  1.  Open ‘application\config\routes.php’
  2. Add these line to routers.php:

     

  3. Open ‘application\controllers’ Folder and Create a File catalog.php.
  4. Paste this code to catalog.php :

     

  5. Now Type “http://localhost/CodeIgniter/product/mobile/nokia” URL in Browser.
  6. You can see all three segment:
    segment 1 : product
    segment 2 : mobile
    segment 3 : nokia

Leave a Reply

Your email address will not be published. Required fields are marked *