I have a Codeigniter install with a directory 'sandbox' at root. In sandbox i have document 'poster.html'. If i change this document's extension to .php, I get a CI 404 error. If i leave it as .html it works!
Edit: I just confirmed that .php extension does not work from any of the excluded directories like: css/ or scripts/ . Here is what the .htaccess file at the root directory looks like:
RewriteEngine on
RewriteCond $1 !^(index\.php|sandbox|css|scripts|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
Current root directory structure:
application/
system/
css/
sandbox/
scripts/
.htaccess
index.php
php.ini. Try changing your tags in the PHP file from <? to <?php./and then from root you have a folder called/sandbox? If you can access a css/scripts file you should access a file in sandbox