0

I have Changed the

$config['index_page'] = 'index.php';

to

$config['index_page'] = '';

And

$config['uri_protocol'] = 'REQUEST_URI';

to

$config['uri_protocol'] = 'AUTO';

and in .htaccess I have written this code. but the index.php cannot remove from the URL.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Dave
  • 3,073
  • 7
  • 20
  • 33
John Merry
  • 31
  • 10

1 Answers1

1

Set your base_url to

$config['base_url'] = 'http://localhost/base_folder/

Use this .htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /base_folder
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
Ashu
  • 1,320
  • 2
  • 10
  • 24
Martin
  • 575
  • 6
  • 13