0

I just started learning CodeIgniter and I want to remove the index.php so the URL can be shown nicely.

I'm using .htaccess but instead it shows me the Wampserver Homepage (like in http://localhost)

My project directory is in http://localhost/CodeIgniter

What's wrong?

10
  • delete index.php?Or remove index.php from url. Commented Mar 18, 2015 at 18:00
  • 1
    Oops sorry, English is not my primary language Commented Mar 18, 2015 at 18:02
  • Hm, strange, i guess you use well known .htaccess code, suggested on CI site? Commented Mar 18, 2015 at 18:03
  • localhost/CodeIgniter/index.php working? Commented Mar 18, 2015 at 18:04
  • I googled it before asking here. So, I used a lot of .htaccess from many sources Commented Mar 18, 2015 at 18:05

1 Answer 1

1

If anyone is still looking for this answer, it is due to not enabling mod_rewrite in the httpd.conf file.

Just remove the # from the start of the below line in the httpd.conf file to enable mod_rewrite.

LoadModule rewrite_module modules/mod_rewrite.so

Restart the apache after that.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.