Welcome Guest, Not a member yet? Register   Sign In
How remove index.php from URLs? [SOLVED]
#29

[eluser]Unknown[/eluser]
[quote author="mvnkarun222" date="1387885220"]I can't able to remove index.php from the url.....I tried many codes...........Can anyone tell me how to remove index.php [/quote]

Try this

1.Open the httpd.conf
2. find
Code:
LoadModule rewrite_module modules/mod_rewrite.so

3. remove #
4. Find AllowOverride then change to be

Code:
<Directory />
    AllowOverride All
    Order deny,allow
    Deny from all
</Directory>

5. Save then restart apache
6. Create .htaccess at the root directory
Code:
#REWRITE index.php
#START USING REWRITE ENGINE
RewriteEngine On

#REWRITE CONDITON
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

#WHEN YOU FOUND index.php IT WILL REWRITE To / AUTOMATICALLY
RewriteRule .* index.php/$0 [PT,L]


7. Change the application/config.php

Code:
$config['uri_protocol'] = 'REQUEST_URI';

Code:
$config['index_page'] = '';

8. Save and test it

Hope it can help you.


Messages In This Thread
How remove index.php from URLs? [SOLVED] - by El Forum - 05-21-2010, 11:50 AM
How remove index.php from URLs? [SOLVED] - by El Forum - 05-21-2010, 03:56 PM
How remove index.php from URLs? [SOLVED] - by El Forum - 06-03-2010, 10:52 PM
How remove index.php from URLs? [SOLVED] - by El Forum - 07-19-2010, 12:26 PM
How remove index.php from URLs? [SOLVED] - by El Forum - 07-20-2010, 10:11 AM
How remove index.php from URLs? [SOLVED] - by El Forum - 07-20-2010, 10:16 AM
How remove index.php from URLs? [SOLVED] - by El Forum - 07-20-2010, 10:26 AM
How remove index.php from URLs? [SOLVED] - by El Forum - 07-20-2010, 06:22 PM
How remove index.php from URLs? [SOLVED] - by El Forum - 07-20-2010, 08:51 PM
How remove index.php from URLs? [SOLVED] - by El Forum - 07-21-2010, 09:00 AM
How remove index.php from URLs? [SOLVED] - by El Forum - 07-22-2010, 09:50 AM
How remove index.php from URLs? [SOLVED] - by El Forum - 07-22-2010, 09:59 AM
How remove index.php from URLs? [SOLVED] - by El Forum - 07-28-2011, 10:34 AM
How remove index.php from URLs? [SOLVED] - by El Forum - 02-05-2012, 10:36 AM
How remove index.php from URLs? [SOLVED] - by El Forum - 02-06-2012, 04:54 AM
How remove index.php from URLs? [SOLVED] - by El Forum - 02-06-2012, 02:07 PM
How remove index.php from URLs? [SOLVED] - by El Forum - 02-06-2012, 04:47 PM
How remove index.php from URLs? [SOLVED] - by El Forum - 02-06-2012, 04:54 PM
How remove index.php from URLs? [SOLVED] - by El Forum - 02-06-2012, 04:55 PM
How remove index.php from URLs? [SOLVED] - by El Forum - 02-06-2012, 04:58 PM
How remove index.php from URLs? [SOLVED] - by El Forum - 03-18-2012, 12:22 AM
How remove index.php from URLs? [SOLVED] - by El Forum - 05-01-2012, 05:44 PM
How remove index.php from URLs? [SOLVED] - by El Forum - 07-31-2012, 11:13 PM
How remove index.php from URLs? [SOLVED] - by El Forum - 08-13-2012, 12:28 AM
How remove index.php from URLs? [SOLVED] - by El Forum - 08-15-2012, 06:01 AM
How remove index.php from URLs? [SOLVED] - by El Forum - 03-08-2013, 02:07 PM
How remove index.php from URLs? [SOLVED] - by El Forum - 12-24-2013, 04:40 AM
How remove index.php from URLs? [SOLVED] - by El Forum - 12-24-2013, 04:45 AM
How remove index.php from URLs? [SOLVED] - by El Forum - 03-09-2014, 06:32 AM
How remove index.php from URLs? [SOLVED] - by El Forum - 03-10-2014, 12:17 PM
How remove index.php from URLs? [SOLVED] - by El Forum - 03-10-2014, 12:31 PM
How remove index.php from URLs? [SOLVED] - by El Forum - 03-10-2014, 01:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB