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

[eluser]asim111[/eluser]
Hi, i am new to CI.
i have been developed an "auto dealer" module by using CI.

i want to remove index.php from the URL...
Todo this, i created a .htaccess file
Code:
Options +FollowSymLinks
<IfModule mod_rewrite.c>
    RewriteEngine on    
    RewriteCond $1 !^(index\.php|resources|robots\.txt)
    RewriteRule ^(.*)$ http://www.auto_site_url.co.uk/index.php/$1 [L]
</IfModule>

secondly,i modified config file
Code:
$config['index_page'] = "index.php";
Replaced with
Code:
$config['index_page'] = "";


this project is working 100% on local server.
but on live server it is not working properly


ON LIVE SERVER its automatically changing site url like
Code:
http://www.auto_site_url.co.uk/
INTO
Code:
http://www.auto_site_url.co.uk/index.php/


and due to this, displaying error page with message
Code:
An Error Was Encountered
Unable to load the requested class: my_validator

i think something wrong with .htaccess file, but not sure

please help me to resolve this issue

thanks


Messages In This Thread
Removing the index.php file - by El Forum - 10-14-2008, 01:17 AM
Removing the index.php file - by El Forum - 10-14-2008, 03:26 AM
Removing the index.php file - by El Forum - 10-14-2008, 05:59 AM
Removing the index.php file - by El Forum - 10-14-2008, 06:19 AM
Removing the index.php file - by El Forum - 10-14-2008, 08:04 AM
Removing the index.php file - by El Forum - 10-14-2008, 08:19 AM
Removing the index.php file - by El Forum - 10-14-2008, 08:48 AM
Removing the index.php file - by El Forum - 10-14-2008, 08:53 AM
Removing the index.php file - by El Forum - 10-14-2008, 09:35 AM
Removing the index.php file - by El Forum - 10-15-2008, 02:25 AM
Removing the index.php file - by El Forum - 10-15-2008, 04:08 AM
Removing the index.php file - by El Forum - 10-15-2008, 04:18 AM
Removing the index.php file - by El Forum - 10-20-2008, 04:00 AM
Removing the index.php file - by El Forum - 10-20-2008, 04:44 AM
Removing the index.php file - by El Forum - 10-20-2008, 05:00 AM
Removing the index.php file - by El Forum - 10-20-2008, 06:43 AM
Removing the index.php file - by El Forum - 10-20-2008, 06:47 AM
Removing the index.php file - by El Forum - 10-24-2008, 01:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB