Hi Mika, you’ve helped me a few times, always much appreciated.
When I say NEW, I built this multisite last Sunday.
I have turned off year/month in the settings for each domain.
Before I did that I still had this problem of images not displaying and it was searching for the image in Cpanel to see if it had actually uploaded that reminded me to turn off the Year/Month way of saving.
I uploaded that picture as a test because I know it works. I’ve tried several images I’ve used on other websites – none of them will display as thumbs in the library or in posts.
I have used Domain Mapping by Doncha.
This is not my first multisite.
I have another test multisite on the same server and I can upload images to that, so I must have gone wrong somewhere. Everything else seems to work.
I deactivated and deleted all plugins, that stopped domain mapping from working and the urls revert to subdomains.
WP shows the url like this – http://northernbeachesaudiology.sydneyentassociates.com.au/files/Baccarat-Capri.jpg
That url will not show the image, I get ‘No results Found’ from the northern beaches website page.
CPanel shows the path as http://sydneyentassociates.com.au/wp-content/blogs.dir/2/files/Baccarat-Capri.jpg and that shows the image.
Somehow the file structure in WP is not working properly
With plugins deactivated and removed, the uploaded image still doesn’t show as a thumbnail, just a blank grey box with a tick top right. It doesn’t show in the post, there’s a blank box with the title top left.
I have swapped the htaccess file from the working test multisite, but that didn’t make any difference
I don’t understand why the test multisite on this server works and the new one doesn’t- I’d use the test multisite but it is installed using a different domain name.
I have now reinstalled the plugins and have a maintenance mode plugin running now so only admins can see the actual page or photo links.
Any ideas? what should I look for?
Here is the test multisite htaccesss file where images work
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
here is the htaccess file of the multisite where images won’t display after uploading
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
#rules below prevented single sign on
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
# These rules allow single sign on
#RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
#RewriteCond %{REQUEST_FILENAME} -f [OR]
#RewriteCond %{REQUEST_FILENAME} -d
#RewriteRule ^ - [L]
#RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
#RewriteRule ^(.*\.php)$ $1 [L]
#RewriteRule . index.php [L]
#END of Single sign on rules
# END WordPress