Error image path
-
Hi,
I have searched the forum to find an answer but could not find one so I am posting a new thread.
I’m running WordPress 3.3.1 in a Multisite. When I add media from one of the sites, the file gets uploaded and thumbnails are created in the proper directory (blogs.dir/2/files/2012/05/image.jpg) but when looking at the media record the thumbnails are blank and the Filename URL is incorrect.Details:
When I create a post and insert an image the image come inserted following this path:
https://www.site.com/blogs/wp-content/blogs.dir/2/files/2012/05/image.jpg
where the absolute path pointing to visualize the image correctly.The problem is that the path entered in the post is as follows:
https://www.site.com/blogs/bob/files/2012/05/image.jpg
il which gives me a 404 – File not found, pointing directly at this location, I can’t display the image in post.I have verified that the “Fileupload Url” (in Network Admin>Site>Edit>Settings) is as follows
https://www.site.com/blogs/bob/files
I think the problem probably lies in the following .htaccess:
RewriteEngine On RewriteBase /blogs/ 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).*) $1 [L] RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L] RewriteRule . index.php [L]
Any help would be appreciated. I’m very frustated about this problem. Help me!
Thanks in advance.
Sara
- The topic ‘Error image path’ is closed to new replies.