CodeIgniter Forums
uri mod_rewrite to remove index.php - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: uri mod_rewrite to remove index.php (/thread-6717.html)



uri mod_rewrite to remove index.php - El Forum - 03-09-2008

[eluser]nuttynibbles[/eluser]
location of .htaccess file: /home/example/public_html/
location of codeigniter files: /home/example/public_html/codeigniter/

url: http://example.com/codeigniter/index.php/blog/yahoo
the above link will call class blog and function yahoo and echo some text.

i have research other threads on ways to remove index.php by mod_rewrite but stil not successful.

here is the conent of my .htaccess:
Options -indexes
DirectoryIndex index.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /codeigniter/index.php/$1/ [L]


tks..


uri mod_rewrite to remove index.php - El Forum - 03-09-2008

[eluser]nuttynibbles[/eluser]
hi guys, i solve this problem. the reason is because i have .htaccess file in /home/example/public_html/.
i move that file into /home/example/public_html/codeigniter and it works. directory problem =)