CodeIgniter .htaccess RewriteRule result in 404 Page Not Found
问题 I used the following .htacces to route from an old page to a new one: RewriteEngine on RewriteCond %{REQUEST_URI} /Uploader2.7.0/secureFileUploader.php RewriteRule ^(.*)$ /uploader/upload [L,QSA] Even though the rewrite rule is correct, I got a '404 page not found' error. This .htacces is at the root of my site. Based on this answer, I changed: $config['uri_protocol'] = 'AUTO'; to $config['uri_protocol'] = 'REQUEST_URI'; And that made the reroute rule work fine, but the CLI stopped working.