Sorry for my bad english ...
I have the most basic CodeIgniter setting possible and can't make it work ... if I access the URL http://domain.com/index.php?controllerX/method it works fine.
Now I want to have access http://domain.com/method
I configured the default controller on route.php "controllerX" and try to use the following .htaccess:
RewriteEngine on RewriteCond $1 !^(index\.php) RewriteRule ^(.*)$ /index.php/$1 [L]
I tried several .htaccess and each time the server just returns 403 errors. Even if my .htaccess contains only the first line of "RewriteEngine on", it shows 403 errors. I tried installing each folder on chmod 777 or 755 for testing, and that would not change anything.
Is there any way to find out which resource gives error 403? Or am I mistaken elsewhere?
Ok, I read somewhere that I need "Options + FollowSymLink" on my htaccess ... so that the server shows me 500 errors :(
EDIT Ok, now its working with the following htaccess:
Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.php) RewriteRule ^(.*)$ /index.php/$1 [L]
.htaccess codeigniter-url
Leo Apr 2 '11 at 17:20 2011-04-02 17:20
source share