Welcome Guest, Not a member yet? Register   Sign In
Usage of directories
#1

[eluser]cehennem[/eluser]
Hey there,

I've just coded a simple file uploading application that uploads files to uploads/ directory (domain.com/uploads/)

I don't have a class called "uploads"

So when you try to browse/download any file from those uploaded, CI assumes the "uploads" part of URI as a classname (but it's a real exist directory) and prints 404 NOT Found message.

What should I do to make CI not to take up "uploads/" as a classname?

Thanks for answers,
#2

[eluser]cahva[/eluser]
Modify your .htaccess to exclude uploads directory from rewriting. This is from the userguide:
Quote:RewriteCond $1 !^(index\.php|images|robots\.txt)

Just add the uploads dir to that condition.
#3

[eluser]cehennem[/eluser]
Thanks that worked!




Theme © iAndrew 2016 - Forum software by © MyBB