smithsaga
Member
Posted 1 year ago #
I have MS 3.0.1 and I upload my pictures and get the URL subdomain.domain.com/files/2010/05/pic.png which is what it should be, but none of my pictures are appearing and I get a 404.
My .htaccess is:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]
However, I think I am missing something. I am using subdomains, so what do I need to add or change?
Do your pretty permalinks works? the image url rewriting works on the same basis.
smithsaga
Member
Posted 1 year ago #
Yes pretty permalinks work.
smithsaga
Member
Posted 1 year ago #
Subdomains or subfolders, doens't matter. Images are handled the same way.
- do they show in the backend when you upload them to the medai amanger?
- are they physically on the server? They'll be in blogs.dir/BLOGID#/files etc...
smithsaga
Member
Posted 1 year ago #
Yes they are on the server as http://realestate.smithsaga.com/wp-content/blogs.dir/11/files/2010/08/featured_1.png shows. However, when I check the media library, only a picture holder appears with no thumbnail. So I would guess that they do not show. Then when I drill down, it takes me to the picture as http://realestate.smithsaga.com/files/2010/08/featured_1.png and I get a 404.
smithsaga
Member
Posted 1 year ago #
Figured it out. Had a subdirectory named files in the root. Fixed it and everything worked like a charm!
brookwarner
Member
Posted 1 year ago #
I know this is an old thread but I am getting the same issue - but only in Google Chrome (???).
My images load initially, and then disappear when the page completes loading. The same occurs in the back end. If i open the image url, its fine however.
I'm led to believe that this is a .htaccess file issue? if so, what do i need to change?
Cheers in advance!
If it ONLY happens in chrome, try dumping chrome's cache.
brookwarner
Member
Posted 1 year ago #
Hi there. Tried that - but it happens on anyone's computer, who's running Chrome for Mac, not just mine.
It only happens on the subdomain sites, not the root site.
My gut feeling would be you have something goobered on the server itself, but ... Since this is an old AND resolved topic, make a new one, and in it post your .htaccess file.