How can i remove index.php from url
in codeingnator.
I have changed in config page from $config['index_page'] = 'index.php'
to $config['index_page'] = ''.
But I dont know ,where i can add .htaccess file?
How can i remove index.php from url
in codeingnator.
I have changed in config page from $config['index_page'] = 'index.php'
to $config['index_page'] = ''.
But I dont know ,where i can add .htaccess file?
Need to change config file :
'$config['base_url'] = '';
$config['index_page'] = '';
htaccess file :
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
</IfModule>
add this lines to .htaccess file
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$1 [PT,L]