I have a strange situation in the multisite media library.

I have a strange situation in the multisite media library. Thumbnails are not shown, and the url of the images is wrong.

The urls are showing /files/year/month/imagename, while the images are in /wp-content/uploads/sites/2/year/month

I checked the .htaccess, and there is a rule RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] which should deal with this.

I checked with my other multisites, and they are doing fine and depicting the correct urls for the images.

The multisite on which this problem appears has had a lot of problems, due to caching. So I cleared all the caches and regenerated the permalinks, nothing worked.

Is there another setting I overlooked somehow? Please let me know. Sophie