Welcome Guest, Not a member yet? Register   Sign In
Getting error after removing index.php
#1

[eluser]dimasVS[/eluser]
Hi all,
I'm on progress developing website using CodeIgniter 2.0, but I got a problem.
after I removed index.php I got error.

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

Code:
Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
localhost
Sun 22 May 2011 01:30:46 AM WIT
Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1

Why it can be happen ?
In previous version in 1.7.3, after removed index.php it still running well.
Thanks..
#2

[eluser]Ellli[/eluser]
where exactly you see that error?
#3

[eluser]dimasVS[/eluser]
[quote author="Ellli" date="1306098670"]where exactly you see that error?[/quote]

after I directly access the function of the Controllers name.
example : localhost/CI_test/index.php/management_report
and got error when access localhost/CI_test/management_report

Is there some thing wrong with that ?
#4

[eluser]danmontgomery[/eluser]
http://codeigniter.com/wiki/mod_rewrite/

Check section 4, "Make sure apache accepts needed .htaccess directives"
#5

[eluser]dj_voc[/eluser]
use this for your .htaccess :

Code:
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond $1 !^(index\.php|images|robots\.txt|style|user_guide)
    RewriteRule ^(.*)$ ./index.php/$1 [L]
</IfModule>

i hope that can solve your problem




Theme © iAndrew 2016 - Forum software by © MyBB