I really need help. Removed index.php from the address bar, routing stopped working. I go to site.ru/search does not work, and when to site.ru/index.php/search redirects $route['search'] = "library/search"; to the controller function $route['search'] = "library/search";

.htaccess looks like this:

 RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt|public) RewriteCond %{REQUEST_URI} !\.(css|js|jpg|gif|png)$ RewriteRule ^(.*)$ /index.php/$1 [L] 
  • AllowOverride is for vhost? - zb '

1 answer 1

 $config['index_page'] = ''; //здесь ничего не должно быть 

fix in config ( application/config/config.php )