Welcome Guest, Not a member yet? Register   Sign In
htaccess issue after removing index.php

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]

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

Theme © iAndrew 2016 - Forum software by © MyBB