"Contribute to Open Source: the right way" is my free and open source book, about... Open Source!
It will help you improve your skills and understand how to start this journey!
It will help you improve your skills and understand how to start this journey!
Questo articolo รจ stato scritto oltre 1 years, il contenuto potrebbe essere datato.
The question is quite simple, you are on a development website (also locally) but you don’t care of the images (maybe because they are 50000~)!
A simple solution is a Apache redirect for your .htaccess (to put before the section added by WordPress), in this way the local request (on remote if it is a staging) get a redirect to the image.
RewriteEngine on RewriteRule ^(wp-content/uploads/.*) https://domain.com/blog/$1 [L]
In this example we have a domain with the WP instance in a subfolder but in case you don’t are in this case just remove the blog/
part.