Thread Starter
NWTD
(@nwtechie)
Also important to note that this happening across every site on this multisite network
Thread Starter
NWTD
(@nwtechie)
Following up on similar threads, some had issues caused by .htaccess. I haven’t changed mine, but here’s my .htaccess
#BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
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]
php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 200
php_value max_input_time 200
#END WordPress
No, that;s not wrong.
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
See how that says ^([_0-9a-zA-Z-]+/)?files/(.+) ? That cool code means that http://domain/subsite/files/image will be magically passed to http://domain/blog.dir/subsite number/files/image
So that’s fine. What’s the real problem? Is http://domain/subsite/files/image not working?
What happens if you try to view that image directly?
Is it a 404? A blank white page…?
Thread Starter
NWTD
(@nwtechie)
It shows nothing. Example
That shows a broken image to me, actually, and tells me your httpd.conf file probably doesn’t have AllowOverride set to All.
That said, the images should be in http://nwtechanddesign.com/leira/files/2012/10/Bobbi-Romine1.jpg unless you changed them.
Thread Starter
NWTD
(@nwtechie)
As far as my ftp client shows me, this image is here: /nwtechanddesign.com/public_html/wp-content/blogs.dir/29/files/Bobbi-Romine1.jpg
Thread Starter
NWTD
(@nwtechie)
Assuming by the “AllowOveride set to All.”, you meant to add
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
to my .htaccess…this just crashed the site.
httpd.conf
Totally different file. Ask your webhost if you’re not sure.
Thread Starter
NWTD
(@nwtechie)
That did it. Thank you for the insight.