Skip to main content
Improved code formatting
Source Link
Jan Fabry
  • 30.5k
  • 4
  • 90
  • 136

Ok, that's wordpress'WordPress' standard htaccess.htaccess file - because all the sites use a common virtual root (think single folder) all domains are using the htaccess.htaccess code. Basically you need to rewrite the code to use separate instructions for each domain e.g. this would send a request for newdomain.comnewdomain.com to a specific page.

Internally rewrite new domain home page requests to a specific page

RewriteCond %{HTTP_HOST} ^www.newdomain.com RewriteRule ^$ /specific-page.html [L]

# Internally rewrite new domain home page requests to a specific page
RewriteCond %{HTTP_HOST} ^www\.newdomain\.com
RewriteRule ^$ /specific-page.html [L] 

Ok, that's wordpress' standard htaccess file - because all the sites use a common virtual root (think single folder) all domains are using the htaccess code. Basically you need to rewrite the code to use separate instructions for each domain e.g. this would send a request for newdomain.com to a specific page.

Internally rewrite new domain home page requests to a specific page

RewriteCond %{HTTP_HOST} ^www.newdomain.com RewriteRule ^$ /specific-page.html [L]

Ok, that's WordPress' standard .htaccess file - because all the sites use a common virtual root (think single folder) all domains are using the .htaccess code. Basically you need to rewrite the code to use separate instructions for each domain e.g. this would send a request for newdomain.com to a specific page.

# Internally rewrite new domain home page requests to a specific page
RewriteCond %{HTTP_HOST} ^www\.newdomain\.com
RewriteRule ^$ /specific-page.html [L] 
Source Link

Ok, that's wordpress' standard htaccess file - because all the sites use a common virtual root (think single folder) all domains are using the htaccess code. Basically you need to rewrite the code to use separate instructions for each domain e.g. this would send a request for newdomain.com to a specific page.

Internally rewrite new domain home page requests to a specific page

RewriteCond %{HTTP_HOST} ^www.newdomain.com RewriteRule ^$ /specific-page.html [L]