Image display and .htaccess - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Image display and .htaccess (/showthread.php?tid=57344) |
Image display and .htaccess - El Forum - 03-07-2013 [eluser]julian0008[/eluser] Here is my line of code below which displays an image from the uploads folder within the application folder using base_url() Code: <div id = "picture"> And this is my htaccess file located at the root directory of my CI installation Code: <IfModule mod_rewrite.c> The problem is the image does not display. Instead, it displays the alt text. Is there something wrong with my htaccess? Did I miss something? Thanks for any help in advance! Image display and .htaccess - El Forum - 03-07-2013 [eluser]Aken[/eluser] There is an .htaccess file in the application folder that prevents you from putting static assets such as images in it. It's best to place your uploads folder at the root of your application, e.g. the folder where index.php is. Image display and .htaccess - El Forum - 03-08-2013 [eluser]julian0008[/eluser] thank you sir Aken for the replyill go try it now |