After moving site to new server, image uploads are all 404
-
Moved a website from one server to another server and everything seems correct with the exception of all uploaded images are showing as 404. Both servers run debian lamp.
The website was using multisite at one time but that functionality was turned off via wp-config.php some time ago.
This means that the uploaded files are stored in /wp-content/blogs.dir/1/…..
I have checked all ownership and permissions on the files and they are correct. The htaccess file is the same as the old server etc.
At this point I just need some other ideas as to where to look to fix this problem.
Here is the .htaccess file contents, just in case….
`
RewriteEngine On
RewriteRule ^(.*/)?\.svn/ - [F,L]
ErrorDocument 403 "Access Forbidden"RewriteEngine On
RewriteBase /#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ $1/ [R=301,L]RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>
`
- The topic ‘After moving site to new server, image uploads are all 404’ is closed to new replies.