,

Redirect staging missing uploads media to production server

By.

min read

My profile

Share this:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_URI} ^/wp-content/uploads/[^/]+/
RewriteRule (.*) https://www.originalproductionurl.com/wp-content/uploads/$1 [NC,L]

Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *