How to remove index.php in codeigniter
how to remove index.php in codeigniter |
Hi Guys today we learn how to remove index.php in codeigniter using .htaccess Rewrite Engine Rules
Follow the below step to remove index.php in codeigniter
Step 1:Creating .htaccess file
go to your codeigniter root directory and create a file named .htaccess
htaccess file for codeigniter |
Step 2: Codes for .htaccess
Now open .htaccess file in your notepad and save the below codes.
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php/$0 [PT,L]Now you can access your Controllers and It's method wihout index.php
that's it how to remove index.php in codeigniter.
No comments:
Post a Comment
Thank You for Your Comment
Note: Only a member of this blog may post a comment.