Welcome Guest, Not a member yet? Register   Sign In
404 file not found on all images
#1

I have a seasoned application that I upgraded von ci 2 to 3.1 and started testing in test environment my a remote host.
No all my images are not displaying.
The same app works fine on my localhost.
I tried without .htaccess - same
I tried changing PHP versions between 5.3 and 5.6 - same

I am running out of ideas.

Test environment is www.sunnydays.me.

Where should I look next, what am I missing?

Included my .htaccess file

Attached Files
.htm   .htaccess_server.htm (Size: 168 bytes / Downloads: 154)
Reply
#2

Code:
<IfModule mod_rewrite.c>

    #Options +FollowSymlinks
    #Options +SymLinksIfOwnerMatch

    RewriteEngine On

    DirectoryIndex index.php index.html

    #RewriteBase /

    # Remove index.php segment from the URL.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond $1 !\.php$
    RewriteCond $1 !^(index\.php|robots\.txt|favicon\.ico|apple-touch-icon\.png|apple-touch-icon-precomposed\.png)
    RewriteRule ^(.*)$ ./index.php?/$1 [L,QSA]

</IfModule>
Reply
#3

(10-18-2015, 11:19 AM)ivantcholakov Wrote:
Code:
<IfModule mod_rewrite.c>

   #Options +FollowSymlinks
   #Options +SymLinksIfOwnerMatch

   RewriteEngine On

   DirectoryIndex index.php index.html

   #RewriteBase /

   # Remove index.php segment from the URL.
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond $1 !\.php$
   RewriteCond $1 !^(index\.php|robots\.txt|favicon\.ico|apple-touch-icon\.png|apple-touch-icon-precomposed\.png)
   RewriteRule ^(.*)$ ./index.php?/$1 [L,QSA]

</IfModule>

Thank you for your help. Unfortunately it did not make a difference!
Reply
#4

1) Your images are supposed to be inside images/classes/...?
2) I notice a trailing space on the src attribute of your image tags, although removing it doesn't seem to solve the problem.
3) Your site URL is www.sunnydays.me, but the images are coming from sunnydays.me

Manually fixing #2 & 3 had no effect. Is the image folder correct?
Reply
#5

Are the images served by some sort of script named classes.php? Or maybe by a script named images.php?
Reply
#6

(10-18-2015, 12:54 PM)ciadmin Wrote: 1) Your images are supposed to be inside images/classes/...?
2) I notice a trailing space on the src attribute of your image tags, although removing it doesn't seem to solve the problem.
3) Your site URL is www.sunnydays.me, but the images are coming from sunnydays.me

Manually fixing #2 & 3 had no effect. Is the image folder correct?

The image folder is correct. Everything works fine on my local localhost installation. Only when I do a remote host the pictures don't show.
The images are in images/classes/{class_name}/image.png

I have never had such a weird issue.
Reply
#7

I just redid everything fom scratch, uploaded to a different host provider and it works.
thank you all for your support!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB