Redirecting Uploads Multisite
-
Hi, I’m curious about a redirect situation that I have encountered. Last year I migrated all of the sub-sites of an old multisite to a fresh multisite.
The old multisite uploads URL structure as /files/year/month/filename.jpg
The new multisite uploads URL structure is /wp-content/uploads/sites/sitenumber/filename.jpg
I’ve tried 2 regex redirects and neither work. I also tried a standard page redirect. In all cases, I continue to get a WordPress > Error > There has been a critical error on this website.
First attempt with Regex:
^/files(.*) /wp-content/uploads/sites/16$1
Second Attempt with Regex:
^/files/(.*) /wp-content/uploads/sites/16/$1
Third Attempt with standard page redirect:
/files/2013/10/filename.pdf /wp-content/uploads/sites/16/2013/10/filename.pdf
I figure this is some type of WordPress issue but I am hoping that you have a workaround.
Thanks,
Pat
- The topic ‘Redirecting Uploads Multisite’ is closed to new replies.