Need help with multisite domain names
-
Setup:
I have a multi site network installed and working well with three sites on the same installation – site1.com, site2.org and site3.com.
For site2.com if either site2.com or https://www.site2.com are placed in browser address bar the browser goes to site2.com as is desired.
Problem:
I want another domain name to also got to site2.com. I want a visitor to be able to type secondname4site2.com into their browser and get to site2.com as if they just typed in site2.com.
I own the domain name and it points to my server but instead of going to site2.com I am getting error messages and/or 404 pages.
My original .htaccess file is:RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L]
I have been trying different rules in .htaccess such as:
# Change site to site2 <If "%{HTTP_HOST} != 'www.secondname4site2.com'"> Redirect "https://site2.com/" </If>
No luck so far
- The topic ‘Need help with multisite domain names’ is closed to new replies.