CodeIgniter Forums

Full Version: image file path and uri conflict
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

i having trouble with the file path to display raw image in the browser (which mean copy the image url into new tab), because found that Codeigniter treat it as a controller and eventually give me 404.

example:

http://mydomain.com/upload/portfolio/img.png


NOTE: i got use .htaccess to remove index.php


how to solve this? thanks for advice!!
show here your htaccess file
(12-05-2015, 08:04 AM)Edwin Wrote: [ -> ]Hi all,

i having trouble with the file path to display raw image in the browser (which mean copy the image url into new tab), because found that Codeigniter treat it as a controller and eventually give me 404.

example:

http://mydomain.com/upload/portfolio/img.png


NOTE: i got use .htaccess to remove index.php


how to solve this? thanks for advice!!

what do you want to, please clear question ?

Code:
Options -Indexes //prevent listing file in your directory

http://www.thesitewizard.com/apache/prev...cess.shtml