htaccess Rewrite rule?
-
My multisite installation is an upgraded one from an old WPMU. Things are pretty good, except the media on SubSites. I need a rewrite rule, I guess, for wp-content/blogs.dir/SubSiteID to rewrite as SubSiteName/files.
My media upload path is wp-content/blogs.dir/SubSiteID/files
I have these rules already in htaccess:
# uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?siteN/files/(.+) wp-content/blogs.dir/N/files/$2 [L]
I have tried commenting out the first one and just using the second. I also have tried adding this to the top of htaccess:
# Moved Images RewriteRule ^wp-content/uploads/(.*)$ https://villageconnector.com/files/$1 [L,R=301]
What am I missing? Many thanks in advance.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘htaccess Rewrite rule?’ is closed to new replies.