• I have a WP multisite installation that I use to host several websites for a few nonprofits that I’m a part of. I’m trying to launch a microsite for one of the domains, but can’t seem to make it work.

    The installation is running as a subdomain installation, with mainsite.com as the main domain. Then I have a website running for www.nonprofit.org and I’d like to launch a new Site in my WP installation that resolves to event.nonprofit.org.

    I’ve been able to add event.nonprofit.org as a Parked Domain at my web host and have changed the Site URL in WordPress to event.nonprofit.org. I can see the site at event.nonprofit.org, but I’m not able to log into wp-admin for the site; I can’t get past the wp-login screen (when I hit Submit, I get redirected back to wp-login).

    Are there any tricks to making this work?

Viewing 1 replies (of 1 total)
  • It sounds like you’ve taken the necessary steps to set up the microsite, but there may be some additional configuration required to get it working correctly.

    One thing you can try is to make sure that the domain is properly mapped to the WordPress site. In your multisite installation, go to the Network Admin dashboard and navigate to the Sites section. Click on the microsite you’ve created and then select the Info tab. Make sure that the Siteurl and Home fields are set to the correct URL for the microsite (event.nonprofit.org in this case).

    If that doesn’t work, you may need to update the .htaccess file to allow access to the microsite’s wp-admin. In your multisite installation’s root directory, there should be an .htaccess file. Make sure that it includes the following lines:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    # allow the microsite wp-admin
    RewriteCond %{HTTP_HOST} ^event\.nonprofit\.org$ [NC]
    RewriteRule ^(.*)$ https://event.nonprofit.org/$1 [L,P]
    

    These lines will allow access to the microsite’s wp-admin by rewriting the URL to include the subdomain.

    If you’re still having trouble, it’s possible that there may be an issue with the server configuration. You may want to check with your web host to see if they can provide any assistance.

Viewing 1 replies (of 1 total)
  • The topic ‘Multisite subdomain site on secondary domain’ is closed to new replies.