Welcome Guest, Not a member yet? Register   Sign In
How to remove index.php from URL
#5

[eluser]justjiten[/eluser]
Yes I am working on XAMPP in Windows. but the index.php is not removed at all.
Code:
http://localhost/ci/index.php/welcome

working fine, but when I type
Code:
http://localhost/ci/welcome

It is showing the error404 Object Not Found.

I have set config.php like
Code:
$config['base_url'] = 'http://localhost/ci/';
$config['index_page'] = ' ';
$config['uri_protocol'] = 'REQUEST_URI';

autoload.php like


Code:
$autoload['libraries'] = array('database');
$autoload['helper'] = array('url','form');

and routes.php like

Code:
$route['default_controller'] = "welcome";
$route['404_override'] = '';

My .htaccess file is like

Code:
RewriteBase /ci/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA]

please help me to remove index.php from url, I am using CI version 2.1.2


Messages In This Thread
How to remove index.php from URL - by El Forum - 07-19-2012, 10:56 PM
How to remove index.php from URL - by El Forum - 07-19-2012, 11:09 PM
How to remove index.php from URL - by El Forum - 07-19-2012, 11:23 PM
How to remove index.php from URL - by El Forum - 07-19-2012, 11:25 PM
How to remove index.php from URL - by El Forum - 07-19-2012, 11:38 PM
How to remove index.php from URL - by El Forum - 07-20-2012, 12:41 AM
How to remove index.php from URL - by El Forum - 07-20-2012, 12:41 AM
How to remove index.php from URL - by El Forum - 07-20-2012, 12:43 AM
How to remove index.php from URL - by El Forum - 07-26-2012, 10:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB