CodeIgniter Forums
404 file not found on all images - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: 404 file not found on all images (/showthread.php?tid=63312)



404 file not found on all images - alfred.laggner - 10-18-2015

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


RE: 404 file not found on all images - ivantcholakov - 10-18-2015

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>



RE: 404 file not found on all images - alfred.laggner - 10-18-2015

(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!


RE: 404 file not found on all images - ciadmin - 10-18-2015

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?


RE: 404 file not found on all images - Avenirer - 10-18-2015

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


RE: 404 file not found on all images - alfred.laggner - 10-19-2015

(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.


RE: 404 file not found on all images - alfred.laggner - 10-19-2015

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