Welcome Guest, Not a member yet? Register   Sign In
Removing index.php on CI
#1

[eluser]murali[/eluser]
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.mydomain.com/index.php/search.
.htaccess file...
RewriteEngine on
RewriteBase /mydomain.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.mydomain.com/index.php'; the link should work properly..
please help me, how can i remove the index.php in CI framework when i hosted..


Messages In This Thread
Removing index.php on CI - by El Forum - 01-29-2012, 11:01 PM
Removing index.php on CI - by El Forum - 01-29-2012, 11:45 PM
Removing index.php on CI - by El Forum - 01-30-2012, 02:05 AM
Removing index.php on CI - by El Forum - 01-30-2012, 02:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB