Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Load images from production server if not available .htaccess Wordpress site



Threaded Mode | Print  

 Load images from production server if not available .htaccess Wordpress site (0 Replies, Read 1524 times)
mvaneijgen
Group: Member
Post Group: Newbie
Posts: 7
Status:
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`
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 1:24 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.020