Welcome Guest, Not a member yet? Register   Sign In
Unable to load image
#1

[eluser]boytun[/eluser]
Hello friends

I have big probleme im my application, I'm unable to load any images in the browser
this is the structure of my application

application
public_html
--------css
--------js
--------img
--------.htaccess
--------index.php
system


this is how i call the image in the view:

Code:
<img src="&lt;?php echo base_url(); ?&gt;img/11-380x125.jpg" alt="Arthur Saribekian photowork">


and this my htaccess file:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|png|jpg|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]


I need some help please, it very urgent, some one can save my life
Thanks in advance
#2

[eluser]TheFuzzy0ne[/eluser]
Try replacing what you have with this:
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On

    # If the request is for the system or application directory, redirect via index.php.
    RewriteCond %{REQUEST_URI} ^/(system|application)
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    # If the requested file or directory doesn't exist, redirect via index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php?/$1 [L]
</IfModule>
#3

[eluser]boytun[/eluser]
Thanks a lot , you're fantastic Smile




Theme © iAndrew 2016 - Forum software by © MyBB