Images on FTP, but URL says page not found

So, I read everything I could in the last 2 hours and had no solution.

I moved my drupal site from one host to another, everything works fine minus:

the images in the "sites / defualt / files" folder are located on the FTP server, and I can view them, but when I got to the URL, I just did not find the message.

Example image URL: http://www.example.com/sites/default/files/image.jpg this is what is correct in my code and path, but the image does not appear.

Here is what I checked:

  • A clean url is included,
  • 'admin / settings / file-system', set for sharing
  • 'admin / settings / file-system', path to the file system: 'sites / default / files', as it should be
  • .htaccess in the file folder is set to

SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
# Options None
# Options +FollowSymLinks

and I tried it with deleting <#>

  • I tried to leave the settings.php $base_url ="" file empty and with my exsample domain
  • I have a folder with files installed in cmod '777'
  • Checked database file table, the path is set to "sites / default / files / imagename.png", which seems to be correct.
  • Image names do not contain spaces.
  • I cleared the cache to test various settings
  • I also launched cron.

I don’t know what I’m missing, there are files, the paths are even correct when I look at the rendered html, but the images just don’t appear and the direct URLs say “page not found”

Any help would be awesome, I thought I had this problem before and solved it, but I have no idea what I missed.

Thanks for any help

+4
source share
2 answers

Hhmm, have you checked that all parent folders have at least a run flag set so that you can view them? I think it's safe to install all folders as: 755

Another way to debug is to try to load other files contained in other folders, for example. README in the root or some files in misc / and modules / folders.

+2
source

Just a remote .htaccess file inside default / files, it solved the problem for me. I do not want the exact lines of code contained in the .htacces file ..

-1
source

All Articles