I want to access my URL\'s without index.php
in CodeIgniter. Here is my Blog
controller
class Blog extends CI_Controller {
pub
My Codeigniter version is 3.1.11 I'm trying all types of code in htaccess but that does not work then I was found this code.
Place the .htaccess file in the project folder like this: htdocs/your_project/.htaccess Try this new code for .htaccess:
RewriteEngine on
RewriteBase /your-project-directory-name/
RewriteCond $1 !^(index.php|resources|robots.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]