To create .htaccess file in windows:
1. Open Command Prompt
2. Type “cd” for c drive
3. Type “cd c:wampwwwyour_codeIgniter_folder” //it’s your CodeIgniter project’s root directory.
4. Type “copy con .htaccess”
5. Type “Ctrl+z”
Open up your newly created .htaccess file and type in the following code. & Save it.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /CodeIgniter/index.php/$1 [L]
Now just do as below:
$config[‘index_page’] = “index.php”; to $config[‘index_page’] = “”;
located on “your_codeIgniter_folder/application/config/ config.php” on line 30.