Welcome Guest, Not a member yet? Register   Sign In
[solved] Can't access image via img src
#1

[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?




Theme © iAndrew 2016 - Forum software by © MyBB