Wednesday, July 22, 2015

Remove Index.php From URL in CodeIgniter

How To Remove Index.php From CodeIgniter in Windows Xampp

Follow This Step
1. First check mod_rewrite is enabled or not
2. To check this create php file type in that



3. Run into browser
4. Search for the mod_rewrite if you will find that in loaded module then its enabled else you have to enabled this mod_rewrite
5. After that create .htaccess file in your root folder of codeigniter
6. Copy this below codeand paste into that .htaccess file


7. After that change into the config.php of codeigniter

$config['index_page'] = 'index.php';    
    to      
 $config['index_page'] = ' ';                 

8. Here you done now run the file with index.php using url http://localhost/ci/welcome



-----------------------------------------------------------------------------------------------
you would also like 

 Interview Question [PHP] 

How to create JSON using MySql Database [PHP]




9 comments:

  1. Nice Post! This is a great post. I like this topic.This site has lots of advantage.I found many interesting things from this site. It helps me in many ways.Thanks for posting this again. Thanks a million and please keep up the effective work Thank yo so much for sharing this kind of info- Hire Codeigniter Developer

    ReplyDelete
  2. Great help... very to the point.

    ReplyDelete
  3. This actually works, thanks!

    ReplyDelete
  4. Very Good; post worked for me; especially mod_rewrite

    ReplyDelete
  5. i don't know where is the problem for me

    ReplyDelete
  6. CodeIgniter is gaining popularity these days. It is easier, faster and more reliable as compared to other frameworks. Kanhasoft is leading CodeIgniter Development Company in India which has successfully completed many CodeIgniter Web Development projects. Visit our site.

    ReplyDelete
  7. Works for me .. Thank you :) Keep on Sharing ..

    ReplyDelete
  8. Usually I never comment on blogs but your blog post is so convincing that I never stop myself to say something about. It helps me in many ways. If you are looking for codeigniter web development and coordinator development company then F5buddy is the best option for you Hire Codeigniter, developer and take advantage of our Codeigniter Development Services at reasonable prices.

    ReplyDelete

How to Host a Laravel Project on Hostinger’s hPanel: A Step-by-Step Guide

How to Host a Laravel Project on Hostinger’s hPanel: A Step-by-Step Guide If you're looking to host a Laravel project on Hostinger’s hPa...