CodeIgniter Forums
[solved] Can't access image via img src - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: [solved] Can't access image via img src (/showthread.php?tid=47460)



[solved] Can't access image via img src - El Forum - 12-09-2011

[eluser]Unknown[/eluser]
I have the strangest problem.
In my view, i generate html to show an image in my /image_previews/ folder, as such:

Code:
<img scr="http://www.localhost.com/colorapp/image_previews/5.png" />

The image is never displayed. If i get the url of the image though, and enter it directly in the address bar, the image shows up normally.

My .htaccess is:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /colorapp/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /colorapp/index.php/$1 [L]
</IfModule>

The "www.localhost.com" domain is just an entry on my hosts file www.localhost.com 127.0.0.1

Any ideas?