If you want wordpress to behave nice when asked to serve content from example.com you need to configure it to know that. This is done automatically at the install process for the domain on which wordpress is installed on but can also be controlled from wp-config.php by setting values to the WP_HOME and WP_SITEURL constants.
What you need to do is set the contants differently when a request comes from your proxy. You should have in your wp-config.php something like
if (request is comming from the proxy) {
define('WP_HOME', 'http://www.revproxy.com');
define('WP_SITEURL', 'http://www.revproxy.com');
}
This will solve problem with all the URLs which are generated by the wordpress APIs, but you will still need the code to convert links in the content to be “relative” or replace the domain based on the value of WP_HOME
Related Posts:
- Multisite setup help – plain domain/subsite always redirects to domain with subdir multisite
- Moving a WP Multisite to a subdirectory
- WordPress Multisite – Multiple subfolders for blogs
- WordPress multisite subdirectory redirect infinite loop issue
- multisite htaccess 301 redirects
- W3 Total Cache Plugin with WP 3 MultiUser [closed]
- Domain redirect in WordPress multisite
- Suppress subdirectory from WordPress Multisite primary URL
- Why wordpress multisite redirect to wp-signup if site exists?
- Sub-subdomain getting redirected to main domain
- How to exclude a directory from WordPress permalinks in a Multisite environment?
- WordPress multisite subdirectory on nginx behind reverse proxy
- How to disable the default WordPress redirect to non-www URLs?
- Redirect subdomain in Multisite installation?
- Issue with htaccess redirection in WP Multisite
- Redirect only posts to New Domain
- Temp URL Redirect Loop
- Wrong Redirect/Rewrite Rules?
- Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work
- URL without www redirect directly with submission page – Multiwordpress install
- Multisite Redirection to new domains
- Multisite Subdirectory with same domain subdomain
- Redirect old uploads after moving to multisite
- WordPress: how to change URL for individual MultiSites?
- How to host unrelated pages on WordPress domain
- Multisite Subdomain Redirect Mask
- Cannot use Network Admin (Dashboard) on Multi-site after 301 www redirect
- multisite 404 subfolder same name slug as site
- How to make the redirects right? IP to domain name folders
- WordPress Multisite redirect loop
- Multisite, different domains, optional subdirectory, and htaccess
- WP Multisite .htaccess interferes with cgi-bin
- Redirect extra url to Multisite in folder
- How can I set up a completely separate (not multisite) WordPress installation as a subdirectory of an existing WordPress blog?
- External rewrite rules missing in htaccess – Multisite
- Redirect Main Site to Subsite in Multisite WordPress
- Why is WordPress Multisite redirecting to wp-signup.php and how to fix it?
- Multisite in subfolder – How to make new sites to be in same level subfolders as the main site
- Benefits or Problems for using Sub-Directory vs Sub-Domain install of WP Network
- How to disable Multisite sign-up page?
- Multisite wordpress and subdomain URL collisions
- Basically the opposite MultiSite URL question that most people ask
- Multisite wp-admin redirect loop
- Trying to access second site dashboard on a multisite configuration proceeds to an error
- How to install WordPress Multisite with different domains under the same subdirectory?
- Subfolder multisite issue. Themes and plugin files 404
- Subsites in Multisite installation throwing 404 error on wp-admin in IIS 7
- WordPress Network for regional company websites
- How to do Domain Mapping to Subdirectories?
- Limit multisite/network site names to a property of the user
- Members area with externally-managed htaccess / htpasswd authentication?
- Multisite network admin – URL / redirect error
- Subdirectory multisite installation with several domain names?
- Can’t access WordPress multisite after connecting to domain
- Media library not loading after switching the main site of multisite
- Multisite setup on IIS with subdomains
- Multi-site vs seperate installs for just 3 blogs?
- Depth > 2 possible with multisite?
- How to run a subdirectory multisite install under a subdomain
- WordPress multisite in subdirectory, not root, and remove base folder from url
- Add additional non-rewrite .htaccess directives on multisites via mod_rewrite_rules filter
- Error uploading files bigger than 58 MB
- multisite subdomain behind reverse proxy
- Some PDF files get Forbidden Access and other open normally on the same directory subsites
- Unable to access folders in same level as wordpress installation
- WordPress Multisite + Erros with URLS and ADMIN
- WordPress sub-domain multisite 505 error
- Multisite, Subdomain, shared NFS directory Linux HELP
- URL for images folder on Multisite
- Multisite install w/ Sub domains on a subdomain
- Hosting 2 WordPress websites in /public_html/ & /public_html/subdirectory/ at the same time
- How to temporarily redirect front page of a network to one of the sites/blogs?
- Multisite – One Site with multiple URLs
- Sub-sub folders of WordPress Multisite subdirectory
- WordPress Multisite and how to apply sef urls only to specific sites
- How many .htaccess files should a WordPress multisite (subdirectory set up) have?
- Multisite htaccess file causing segfault (Segmentation fault 11)
- multisite installed on subdomain now want another subsite on subdirectory
- Problems with WordPress multisite directories/url structures and admin access after migration
- WordPress not linking correctly with .htaccess redirect to subdirectory
- Multisite wp-admin redirecting to main wp-admin using NGINX
- How do I split a single WPML site with 6 languages (English is Main) into Multisite with 5 subfolders
- Multisite htaccess with domain rewrites
- Multisite WordPress Configurtion
- Resource 404 error on multisite subdirectory install
- WordPress Multisite with thousands of blog
- How To Change the URL of a WordPress Multisite
- Admin user getting redirected to /wp-admin/user
- Make a select where the options are the different multisites
- Primary site file uploads failing, subdirectory subsites upload fine
- Is there a way to have wordpress 301 versus 302 urls by default?
- Development (multi)site indexed – recommendations to redirect 301 to correct url?
- Nginx Multisite redirects (incorrectly) on Chrome IE and Mobile, but works (correctly) on Firefox
- Permalinks in Multisite not working
- iis6 multisite and permissions
- Subdomain add comment redirect to 404 not found page iis server
- Multi site root site installed on subdomain, with child sites as subdirectories
- 404 error in dashboard of subdomain of multisite
- Show 404 when someone visits a non-existant Multisite site
- WordPress: How to change name of ADD-ON domain’s folder and also change/rename all references to it