Softaculous


Topic : Load images from production server if not available .htaccess Wordpress site


Posted By: mvaneijgen on March 7, 2017, 6:05 pm
I have pulled all the files from my production server to my local machine except my `wp-content/uploads/` folder and now I want if there would be a 404 error for a file have it load from the production server.

`RewriteCond %{REQUEST_URI} ^/wp-content/uploads/[^\/]*/.*$
RewriteRule ^(.*)$ http://alloy.work/zuider/$1 [QSA,L]`


I found this `.htaccess` rules that should work but they don't. I have tried several other similar functions, but none of them work. So that made me think that maybe something within Apache is not enabled, and I don't know what I should enable to have it work.

Here is my `.htaccess` file https://gist.github.com/mvaneijgen/8a4ee5f9d15018516fa30e0de25cede8

and my local domain is `127.0.0.1/zuiderpolder`
and my remote domain is `alloy.work/zuiderpolder`

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.