i really need help, same as the title, my problem is can't remove index.php in my codeigniter
i had try many .htaccess code like :
// first
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /projectFolderName/ --> i already change to my project name
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
//second
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
//third
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ – [NC,L]
RewriteRule ^(.*)$ index.php/$1 [NC,L]
//fouth
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
i had change my config like
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
in some reference in my httd.conf
<Directory />
AllowOverride All
Require all denied
</Directory>
i move the .htaccess to main project folder (not in application) but all doesn't work
You forget to set
base_url
inapplication/config/config.php
.Set yourbase_url
.In root folder
.htaccess
And also
Working fine here..
That funny, my url: http://localhost/Igniter in my config: $config['base_url'] = 'http://localhost/igniter'; you can be the same me, check url with link "igniter" replace "Igniter'