CodeIgniter Forums
htaccess problem to remove index.php on urls - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: htaccess problem to remove index.php on urls (/showthread.php?tid=16966)



htaccess problem to remove index.php on urls - El Forum - 03-21-2009

[eluser]virginboy[/eluser]
i know this had been asked many times. i've also red the forums on htaccess but i still dont get it to work.

my problem is i want to remove index.php i mean dont want it to be visible in urls on my site.

i want to change this link
Code:
<a href = "index.php/page_content/">Page Contents</a>

to
Code:
<a href = "page_content/">Page Contents</a>

because everytime i keep using
Code:
<a href = "index.php/page_content/">Page Contents</a>
the index.php is displayed on the url

im using a virtual host on apache
and an xampp on windows xp
i.e local.domain.com

config.php
$config['index_page'] = "";
$config['uri_protocol'] = "AUTO";



.htaccess file

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>


htaccess problem to remove index.php on urls - El Forum - 03-21-2009

[eluser]Eduardo Hertz[/eluser]
Check if the mod_rewrite is on, or remove the <IfModule> and try it again.


htaccess problem to remove index.php on urls - El Forum - 03-21-2009

[eluser]virginboy[/eluser]
if i remove the <ifmodule>

this error appears

Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500


htaccess problem to remove index.php on urls - El Forum - 03-21-2009

[eluser]virginboy[/eluser]
Thanks for the help. I found the answer. My mod_rewrite.so was disables. No nobody told me that mod_rewrite was automatically disabled on exampp hehehe :cheese: