Somewhere in the core, URLs get absolutely pathed when put into the database.
Why don’t you just load all your images from your staging server? Have the staging server hold the files while your local mirrors it. Add the following to your .htaccess
to your local uploads folder and the contents are as follows:
# Attempt to load files from production if they're not in our local version
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
# Replace http://example.com with your production site's domain name
RewriteRule (.*) http://example.com/wp-content/uploads/$1
</IfModule>
Related Posts:
- how to open my existing site on mamp
- Merging separate works in wordpress
- What’s the whole point of “localhost”, hosts and ports at all?
- RabbitMQ started but can’t access management interface
- Jetpack Running Locally [closed]
- How to update WordPress installed on IIS?
- Relative or dynamic site url possible?
- WP Asking for FTP Credentials with XAMPP Localhost
- HTTP request on localhost failing
- How to make other computer in local network see my theme
- WordPress on localhost still points to the live site
- local wordpress blog issues
- Why I have this error when I try to install this old blog on my local webserver?
- Upload localhost changes to live server
- How to transfer /wordpress folder from one PC to another
- Other devices on same network unable to access WordPress localhost setup
- Switching from editing on directly on remote server to PHPstorm local development?
- Hosting a seperate wordpress project on localhost
- hosting a wordpress site locally to my team
- WordPress not working on localhost
- localhost on iPhone not loading images
- website is still in localhost
- How do I create a WP sandbox for development on localhost (raspberry pi 4) without being redirected to the live site?
- How to move a WordPress Localhost straight to an online site?
- WordPress Font Install / MAMP LocalHost
- Problem moving my WordPress live site to localhost
- Transfer wordpress site from web server to localhost
- How to prevent WordPress loading external resources when developing
- Running wordpress on localhost [closed]
- Error establishing a database connection in localhost WordPress site
- How can I view wordpress site hosted locally in my home LAN network from the Internet (outside LAN network)?
- WordPress loading very slow on MAMP Pro [closed]
- Allowing WordPress from non-public address/domain
- WordPress IIS intranet server
- Why I have this error when I try to install this old blog on my local webserver?
- Redirect loop error on wordpress landing page on localhost
- Redirect to another page using contact form 7? [closed]
- Setting up a local copy from a production site
- Get new password without email
- WordPress multi-site, developing locally and syncing live changes
- My blog hosted in distant server is still connecting to localhost
- Localhost WordPress not recognizing my online WordPress account
- wordpress local host web login not working after port configuration
- Making WordPress Local Again?
- Multiple attempted logins originating from the server IP itself?
- I’m getting this error …in localhost/wordpress
- Deploying Local WordPress Site
- Serving WordPress in it’s own directory on localhost on WAMP
- Why don’t WP themes download completely on my localhost (XAMMP)?
- wordpress not loading on localhost [closed]
- mamp localhost not picking up wp-login
- How do I access a remote database with a local MAMP development install?
- Unable to install and upload theme due to php.ini file [closed]
- All includes are pointing at local host
- Developing on localhost remove “index.php”
- Problem copying WordPress site to localhost server
- How to customize a site hosted on wordpress.com locally [closed]
- What should I write in hostname when I try to install a theme?
- Path Issue – Getting “localhost” instead the IP
- WAMP WordPress installation cannot get past step 1, loads indefinitely
- LOCAL server not installing wordpress
- Transfer XAMPP local WordPress website from one PC to another
- Single wordpress page redirecting to wrong port on localhost
- share sample of website designed in localhost with clients
- Cloning production site down to local?
- Sync up localhost copy of my website to the online version
- How connect local python app to wordpress
- Why is WordPress showing local host ip address instead of domain name in url?
- XAMPP internal server error
- How do I move my site from localhost to my domain?
- Install WordPress – Localhost
- Localhost wordpress problem
- WordPress can’t be reached on uWAMP when I change from port 80
- How to get my localhost wordpress to my domain with cpanel?
- WordPress on localhost redirecting to unknown ip
- Running local copy of an old WordPress site on MAMP
- WP 5-minute Install Error: “Waiting on Localhost…” —why does this happen?
- How do I quickly move between 2 local installations and keep them in sync?
- Database connection issue migrating live site to local host
- Cant view wordpress after install
- WordPress Doesn’t Save Changes [closed]
- WordPress installation didn’t install any default data and returned empty rows!
- WordPress site under localhost is disassociated with the code
- Import WordPress site to localhost, but loads blank white screen [closed]
- Cloning wordpress intsall on mac
- How to properly maintain a testing version of a site?
- Backed up site on localhost affecting live site
- Sync Local site and Distant site
- Transferring WordPress Instances
- Why I have this error when I try to install this old blog on my local webserver?
- Setting up XAMPP and Sendmail to enable WordPress emails on localhost
- WordPress theme Modifications not showing up on live server
- Deprecated: mysql_connect()
- How to create a child theme without losing changes made to parent
- Wampserver: “Can’t select database”
- Running a Development Copy of WordPress?
- How do I upload my WordPress code files from previous website onto local host WordPress website?
- Why can’t other people in same network view wordpress built in localhost?
- Failed to upload image on localhost
- How to open site written on localhost on mobile