0

here if i user

http://myproject/index.php/control/one

here it will work if i change to

http://myproject/control/one

here it give error of

Not Found

The requested URL /myproject/da/topic_c was not found on this server.
Apache/2.2.3 (CentOS) Server at 10.0.2.139 Port 80

i am using on local

no i have set my .httaccess file to

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
</IfModule>

the rest project fine...

Welcome Always
  • 367
  • 3
  • 7
  • 21

2 Answers2

0

U can try this, This is my Codeigniter .htaccess file

Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
AddHandler php5-script .php
Faiqa
  • 155
  • 11
0

Have you removed value of index_page variable in config.php? Go to application/config/config.php find $config['index_page'] = 'index.php'; and replace with $config['index_page'] = '';

Nil
  • 1,209
  • 9
  • 20