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
- The wp-admin url for each site does not work on WordPress multisite
- Site Redirecting to wp-signup.php
- Redirect Main Site to Subsite in Multisite WordPress
- Why is WordPress Multisite redirecting to wp-signup.php and how to fix it?
- multisite 404 error for subdirectory
- Multisite htaccess on localhost with WP as an SVN external?
- Multisite in subfolder – How to make new sites to be in same level subfolders as the main site
- WP-Admin not working properly at WordPress multisite with subdirectories
- How to individually set WP_DEBUG on a sub-directory multisite?
- Benefits or Problems for using Sub-Directory vs Sub-Domain install of WP Network
- WordPress Subdomain MultiSite on localhost XAMPP on :8080 with IIS taking port 80
- How to disable Multisite sign-up page?
- Non-WordPress page in subdirectory under WordPress page
- Multisite: differences between subdomain and subdirectory mode? Can it be switch after installation?
- NGinx + WordPress Subdomain Multi with core in Subdirectory
- WordPress multisite,several different languages,page redirect?
- Multisite Subdomains result in 403 Forbidden
- Site redirects to wrong url when saving settings
- Multisite: Develop locally using production images with .htaccess
- Nested folder paths for WordPress multisite
- Multisite subdirectory root not accessible
- Subdirectory and domain multisite installation
- Installed in root, want second in subdirectory
- Redirect all users, except network administrators, from the main site to a subsite
- Multisite: Redirect Subsite Administrator to Subsite Home Page, Bypassing Dashboard
- Admin user getting redirected to /wp-admin/user
- Make a select where the options are the different multisites
- Multisite installation without using domain root
- Primary site file uploads failing, subdirectory subsites upload fine
- How to redirect author subdomain pages to each author pages on www
- Is there a way to have wordpress 301 versus 302 urls by default?
- How to put a Custom Folder under one sub-site of Multisite WP?
- Multisite move server giving redirect loop
- No input file specified after enabling multi site
- Pages redirect me to the homepage
- How do I make a copy of WordPress to other folder
- Redirect WordPress MS to no-www version, excepting some dirs and prefixes
- Multisite redirect loop for a single www domain
- Development (multi)site indexed – recommendations to redirect 301 to correct url?
- Redirect authors from upload.php url to Home page in Multisite
- Nginx Multisite redirects (incorrectly) on Chrome IE and Mobile, but works (correctly) on Firefox
- Permalinks in Multisite not working
- iis6 multisite and permissions
- How to redirect root blog to a specific one in multilang WP?
- WordPress 3.0 Multisite – Child sites and backends appearing blank
- Is it possible to install a different wordpress installation in a subdirectory? [duplicate]
- Multisite subdirectory blogs missing slash
- Nice font not working when http to https – SSL Issue
- Subdomain add comment redirect to 404 not found page iis server
- Multisite website configure Domain issue
- Moved WP Multisite, cannot access sites
- Multi site root site installed on subdomain, with child sites as subdirectories
- 404 error in dashboard of subdomain of multisite
- Multisite Primary Domain Broken All Subsites Work
- Make multisite non-existing subdomains go to homepage instead of Index of/ page
- Wp-admin wrongly redirecting on multisite
- WordPress multisite with subdomains behind nginx reverse proxy using subdirectories
- WordPress multisite with different sites for every language. How can I set the site based on the users browser location or language?
- Show 404 when someone visits a non-existant Multisite site
- Best way to set up multiple urls for the same WordPress site?
- WordPress: How to change name of ADD-ON domain’s folder and also change/rename all references to it
- Change WordPress Multisite Domain to subfolder
- How to approach prefixing the path of a multisite sub-directory install?
- phpmyadmin not working with wordpress multisite subdirectory
- Multisite redirect