CodeIgniter Forums
htaccess issue after removing index.php - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter Archived (from EllisLab) (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: htaccess issue after removing index.php (/thread-11186.html)



htaccess issue after removing index.php - El Forum - 08-29-2008

[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>


htaccess issue after removing index.php - El Forum - 08-29-2008

[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$