I’m trying to use Codeigniter OpenID library and everything work fine with default configuration of CI without .htaccess.
When I remove index.php by changing config.php and .htaccess I get 404 Page Not Found when I try to verify my openid (http://ci.dlsb.eu/test/)
Can anybody tell me where I’m wrong?
config.php
$config['index_page'] = "";
.htaccess
RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
Your
RewriteRuleattempts to createPATH_INFOin a per-directory context, which, from what I can tell, occurs too late in the request processing phase to work correctly.The best solution is to simply not do this, as CodeIgniter doesn’t require it to function:
CodeIgniter should be able to figure out what the proper request was on its own, provided that you left
$config['uri_protocol']set toAUTO. If not, you should set it to eitherAUTOor toREQUEST_URI.