CodeIgniter | .htaccess removing index.php from url CodeIgniter | .htaccess removing index.php from url codeigniter codeigniter

CodeIgniter | .htaccess removing index.php from url


this is works well for me:

1- create .htaccess file in the root folder with the following content

RewriteEngine onRewriteCond $1 !^(index\.php|resources|robots\.txt)RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ index.php/$1 [L,QSA]

2- from the config file change $config['index_page'] = 'index.php'; to $config['index_page'] = '';


Try defining the RewriteBase to /projects/zorkif_nextgen

RewriteBase /projects/zorkif_nextgen


Try the following

RewriteEngine onRewriteBase /# Hide the application and system directories by redirecting the request to index.phpRewriteRule ^(application|system|\.svn) index.php/$1 [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ index.php/$1 [QSA,L]