- Create .htaccess file on index.php.
RewriteEngine On RewriteBase /sitename RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] php_flag display_errors on
- Enable rewrite_module on apache server.
- Enable include_module on apache server.
- Enable cgi_module on apache server.
- Enable short open tag on php server.
- Configure config.php become.
$config['index_page'] = "";