Welcome Guest, Not a member yet? Register   Sign In
htaccess problem to remove index.php on urls
#1

[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>
#2

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

[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
#4

[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:




Theme © iAndrew 2016 - Forum software by © MyBB