abry.rath of UNION Developers
11/12/2018 - 8:01 PM

htaccess Redirect Uploads in Wordpress

Redirect image requests to the staging/production server for local wordpress installations

RewriteCond %{REQUEST_URI} ^\/content\/uploads(.*) [NC]
RewriteCond %{HTTP_HOST} ^dev\.trinity-partners\.com$
RewriteRule ^(.*)$ http://trinity-partners.com/$1 [R=302,NC,L]