Only three steps are require to remove index.php from url in Codeigniter in WAMP environment.
Detail blog: http://goo.gl/3jfW8f
1) Create .htacess file in parallel to application holder
and just copy past the following code:
RewriteEngine On
RewriteBase /CodeIgniter/
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
2) Change $config['index_page'] to blank in config.php in application folder as below:
$config['index_page'] = '';
3) Enable "rewrite_module" of apache.
And restart your apache server.
Congrats!!! you have configure successfully.
Now you can access your site without index.php in url.
Good Solution
ReplyDeleteThanks,
Swati Mate
thankz bro. it helped me lot..
ReplyDelete