If you wanted to target a specific domain then you need a condition (RewriteCond
directive), preceding the RewriteRule
that checks for the specific domain (Host:
header). For example:
RewriteCond %{HTTP_HOST} ^domainb\.com [NC]
RewriteRule ^i-like-([a-zA-Z0-9-]+)/$ wp-content/themes/customtheme/custom-pages/ilike.php?like=$1 [L]
The HTTP_HOST
server variable contains just the Host:
header sent in the request.
Reference:
http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritecond
Related Posts:
- How to exclude a directory from WordPress permalinks in a Multisite environment?
- add_rewrite_rule on multisite doesn’t work
- .htaccess rules for blocking bots with an extra condition
- URL without www redirect directly with submission page – Multiwordpress install
- Help with multisite redirect issues using Cherokee OR solid nginx config?
- Canonical Resource URLs Across a Multisite Network 2012?
- How to Deny Access to No Referrer Requests on Multiste with Mapped domains
- WordPress Multisite and how to apply sef urls only to specific sites
- Rewriting request to another site
- Multisite htaccess with domain rewrites
- using htaccess to check for cookie on permalink then conditionall rewrite with query parameter
- Anyone figured out how to use WordPress MultiSite with Domain Mapping & SSL?
- Can a multisite’s blogs be accessible from two different sub-domains?
- WP Multisite development with Mamp Pro and wildcard subdomains, not really working for me
- Domain mapping (without plugin) in 4.5.x multisite?
- Steps for Moving Multiple WordPress Installs to a Multisite Install?
- MU domain mapping login issue
- WordPress multisite subdirectory redirect infinite loop issue
- Infinite loop problem with the WordPress MU Domain Mapping plug-in
- Nginx rules for subdomain multisite install (Bedrock)
- Protect Uploads in Multisite
- Changing Multisite URL after the subsite has been in use
- 500 error when using virtual host
- W3 Total Cache – How to disable “Performance” menu under multisite? [closed]
- Hide root site in Multisite install
- Multisite without .htaccess
- .htaccess 301 vs. 302 Enforcing HTTPS
- Multisite installation on IIS gives 404 trying to access the admin dashboard
- Images uploading to wrong directory after changing to multisite
- How do I park secure.primary.com on top of the multisite ID:1 domain: www.primary.com (primary multisite domain)
- WordPress MU Domain Mapping Customizer Error
- Changing admin sub-domain in WordPress multisite
- How to properly force https and www on multisite with Apache HTAccess
- Why are images uploaded to main domain, when using multisite with different domains?
- Custom rewrite rule sends 404 header on multisite
- Map alt domain to specific section of website w/o MU
- How to Redirect login User with Mapped Domiain Primary blog Url to Original Sub-site Url
- Multisite, can’t see sub blogs
- WP Multisite – domain mapping to domain.com and separate site to domain.com/help
- Child Site doesn’t appear in the Network menu
- Redirect subdomain in Multisite installation?
- How to host blog on separate domain from main site
- Redirect only posts to New Domain
- Multisite on localhost using xampp
- ReWriteRules and WordPress Multi-Sites with Sub Directories
- Multisite – 404 when accessing sub-sites
- Migrating wordpress multisite and domain mapping plugin
- WordPress Multisite Strange Redirect on Primary Site
- WordPress Multisite’s in subdirectory not redirecting to dashboard settings
- Wrong filepaths and admin page infinite reload after migrating to aws bitnami
- WordPress multisite .htaccess causes 500 error on old *.php URLs
- Multisite Redirection to new domains
- Mapping domains to WordPress network installed on subdomain
- Run additional service on domain with WordPress Multisite?
- WordPress Network (multisite) — how to ensure each site has their own admin URL?
- How can I use separate domains for single pages?
- WordPress: how to change URL for individual MultiSites?
- How to host unrelated pages on WordPress domain
- Login problems on multisite installation with different domains
- Is this a job for WP MultiSite with domain mapping plugin?
- Domain Mapping for WordPress MU and https redirection – How to?
- Move wp-content htacess
- Multisite domain mapping breaks CSS
- MULTISITE SUB-DOMAIN JUST SHOWS INDEX OF -> CGI-BIN INSTEAD OF SHOWING SITE
- Multisite Sub domains not working
- WordPress MU subdomain vhost
- Domain mapping with Multisite links are wrong
- Changed sub-site to its own domain trigger 302 redirects for all page links
- Install multisite wordpress on a subdomain and map to top level domains
- Multisite Subdirectory Site Dashboard redirect loop
- Different Domains in Multisite Setup
- How to use the sunrise.php script for Multisite network domain mapping?
- Multisite on single wordpress
- How do I correctly configure my AMPPS localhost to use subdomains for multisite?
- Update WP install to WP network & it broke the DB connection
- WordPress multisite with domains and subdomains
- Working with Reverse Proxies and Multisite Installation
- Folder structure when using multiple domains with WordPress
- Infamous admin login redirect
- How to Force WWW. in Domain With WordPress MU Domain Mapping Plugin?
- WP-Cli Error When Mapping Multisite Subdomain
- Change main site / network admin site?
- How to fix redirection of Post/Page of wordpress inside the wordpress?
- Serve theme and plugins assets from correct domain on multi-domain multisite
- Domain not redirected correctly with WordPress Multisite
- Add file at the root of mapped domain in multisite
- WordPress Multisite – Domain Mapping
- Multisite different domains mapping error on GGS
- Remove subdirectory from links
- Multisite with different domain names
- WordPress Multisite with cPanel Addon Domains and SSL
- Can WP multisite manage multiple ccTLDs
- Nginx rules for subdomain multisite install (Bedrock)
- Redirect WordPress MS to no-www version, excepting some dirs and prefixes
- Multisite redirect loop for a single www domain
- Is it possible to put a site other than #1 as a Multisite top-level domain?
- WordPress Multisite Subsite WP admin not working
- Multisite subdirectory blogs missing slash
- Cookies in Multisite network where sites have their own domain name?
- Multisite with Static home page mixed with separate domain name