Remove /sites/25/ from image URLS
I assume you want to internally rewrite the URL, rather than externally redirect the request… To rewrite the image URL-path to remove /sites/25 for the espanol subdomain only then try something like the following using mod_rewrite at the top of the .htaccess file, before the WordPress front-controller: RewriteCond %{HTTP_HOST} ^espanol\. RewriteRule ^(wp-content/uploads)/sites/25/(\d{4}/\d\d/[\w-]+\.jpg)$ /$1/$2 [L] Following … Read more