CodeIgniter - How to hide index.php from the URL

Posted by kapil.israni on Stack Overflow See other posts from Stack Overflow or by kapil.israni
Published on 2010-05-05T03:40:13Z Indexed on 2010/05/05 3:48 UTC
Read the original article Hit count: 313

Filed under:
|
|
|

This is what my .htaccess looks like. The .htaccess is sitting in /www/scripts directory which is the parent of codeigniter's "system" directory and which also contains index.php. I have enabled mod_rewrite in my Apache 2.2.x. This is on Ubuntu 9.10 server.

I followed this link, but it does not work. Is there anything i need to do in apache2, any specific configuration so that this works??

  • RewriteEngine on
  • RewriteBase /
  • RewriteCond %{REQUEST_FILENAME} !-f
  • RewriteCond %{REQUEST_FILENAME} !-d
  • RewriteRule ^(.*)$ index.php/$1 [QSA,L]

© Stack Overflow or respective owner

Related posts about codeigniter

Related posts about php