Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Beautify ugly multisite attachment URL's WordPress

One aspect of a Wordpress Multisite I don't like is the permalink for attachments.

I was wondering if there was a plugin available or an easy method to rewrite the attachments permalink.

For example, changing:


Replacing the subdomain with the domain used in the Domain Mapping plugin.
And removing the "/sites/28/"

Answers (1)


Romel Apuya answers:

do you have this rewrite rule in your htaccess??

RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]