• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
uri mod_rewrite to remove index.php

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]


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 =)

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.