CodeIgniter Forums

Full Version: htaccess issue after removing index.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]socs[/eluser]
Need help...

After removing index.php using the following rules in my .htaccess file I can no longer create images on my server. Looks like it checks if the image file exists and if not trys to route it thru the index.php file.

Is there a way to skip the index.php rule for file creation in a specific directory ?

# Use PHP5CGI as default
AddHandler fcgid-script .php
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [QSA,L]
</IfModule>

El Forum

[eluser]socs[/eluser]
solved. Possibly unrelated to my htaccess file but to ignore rules for a specific file type can add something like...
RewriteCond %{REQUEST_URI} !\.jpeg$