Repox/CodeIgniter — comment on commit ed477270cca24e91941d947c00370ee8712e5fac
File:  line 0
By murali118:

Hi, i face some issue on CI 2.0.. about hosting problem.. i need some one help.. this is my first project developed using CI. so i face index.php issue in base URL.. ple help me... i used .ht-access file but that file cant removing index.php.. in localhost base_url working properly, but when i hosted base URL should not work without index.php. ex: www.xxx.com/index.php/search.
.htaccess file...
RewriteEngine on
RewriteBase /xxx.com
RewriteCond $1 !^(/index.php|resources|robots.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(/index.php|css|images|js|robots.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
i face page not found error...
if i use base_url in config file like $config['base_url']= 'http://www.xxx.com/index.php'; the link should work properly..
please help me, how can i remove the index.php in CI framework when i hosted..