Hi!
I read many topics thats related my questions from last 5 years, but I cannot find clean solution.
My problem is, that I would like to cleaning URLs in my WP multisite installation.
The URLs of my subdomain's attachments seems like this:
http://example.com/wp-content/uploads/sites/3/2016/02/sample.jpg
I would like change it to:
http://example.com/wp-content/uploads/2016/02/sample.jpg
I try to use some recommendations for .htaccess modification ex.:
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
But after many tries I can't resolve.
I creating a clean new installation only for testing this feature. I follow multisite and MU Domain Mapping instructions. All other features works fine.
Can you please help me (ex. with step-by-step instructions)?
Kind regards,
Jozsef