Welcome Guest, Not a member yet? Register   Sign In
.htaccess not allowing image files to be displayed
#1

[eluser]80onelove[/eluser]
I'm having some issues getting my .htaccess to work correctly (I think).

I'm using the following code:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond $1 !^(index\.php|uploads)
RewriteRule ^(.*)$ index.php?$1 [L]
</IfModule>


I have files in multiple formats stored in the "uploads" folder... files like .txt and .php display in plain text, while .doc files are downloadable. However, trying to access image files by http (e.g., http://www.mysite.com/uploads/46.jpg) results in a 404 error.

Any ideas on how to correct this?


Messages In This Thread
.htaccess not allowing image files to be displayed - by El Forum - 05-28-2009, 01:30 PM
.htaccess not allowing image files to be displayed - by El Forum - 05-28-2009, 01:39 PM
.htaccess not allowing image files to be displayed - by El Forum - 05-28-2009, 01:51 PM
.htaccess not allowing image files to be displayed - by El Forum - 05-28-2009, 02:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB