EllisLab/CodeIgniter — Issue #1002: index.php issue
Author: murali118
Created: 2012-01-30 05:56:14+00:00
State: open

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..