Welcome Guest, Not a member yet? Register   Sign In
image file path and uri conflict
#1

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!!
Reply
#2

show here your htaccess file
Reply
#3

(This post was last modified: 12-07-2015, 12:43 AM by freddy.)

(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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB