• Resolved brightfire

    (@brightfire)


    I love WP, and I love that they now include the MU feature. However I am having some issues (which I am sure are user errors) that need to be explained.

    I have my network setup. It is using sub-directories.

    I have Added a Site. I needed a map a domain to it, and have successfully set that up, including setting up the parked domain through cpanel.

    1) I need to understand how to set users up for that new site. So that when they login to my main sites login page, it redirects them to their own dashboard.

    2) If I activate a theme for my main domain, how can that not be enabled for my sub-directory sites?

    3) I read recently that plugins in the mu-plugin directory are for use across the network, and if they are in the main domains website plugin directory they will only be used for that one site.

    Thanks for your answers and help with this. I am so close but just need some additional information.

Viewing 12 replies - 1 through 12 (of 12 total)
  • 1 – users are assigned a primary blog. when they login to the backend they should get redirected to that blog.

    Add the users under Super Admin -> Users.
    Add them to the blog you want two ways:
    super admin -> sites -> edit. bottom right.
    or go to the site you want and go to Users -> Add new.

    2. activate and enabled are two different things. ??
    https://wpmututorials.com/themes/enabling-a-theme-for-just-one-blog/

    3. depends on the plugin. please read the instructions for each and every plugin you install. if it’s just a “regular” plugin, you need to activate it and set it up for each site you want to use it on. there is only ONE plugins folder. all sites will look in it.

    you didn’t really have a questions there. ??

    Thread Starter brightfire

    (@brightfire)

    Andrea thanks for the help.

    I have an site setup with a user, when I go to the main domains login page and login as the user it takes me to that users domains and admin login page where it wants me to login again. When I try it just refreshs wanting me to login again.

    The user is only apart of their accounts site, is not assigned to the main domains account. Could that be a problem? I did add them to the main site and it allowed me to login. Once I logged in it took me to my profile page. The under the dashboard link in the sidebar there was a link to My Site. It listed both the main domain and actual sub-account. When I click to go to the dashboard of the sub-account it took me to the admin login page for that domain, and would not let me login.

    I am confused as to what is wrong, any idea?

    Got any plugins running? Because once logged in to the network, they should be logged in across all sites.

    Thread Starter brightfire

    (@brightfire)

    Gravity Forms, Google Analytics and XML Sitemap.

    That’s why this is so strange…

    Thread Starter brightfire

    (@brightfire)

    **Let me apologize for the long post, I just want to explain exactly where I am at and what I have done**

    I am getting more confused on this as time keeps going.

    Here is where I am at.

    I have removed all the previous sites that I have setup. I removed the users associated with those site, and removed the parked domains from my cpanel server.

    So at this point I only have the main domain setup.

    I have the site only work to the domain.com and not https://www.domain.com. No matter what I try I am not able to figure out how to change the existing network from domain.com to https://www.domain.com.

    I have the domain mapping set to the main domains dedicated IP address. I have the nameservers for the main domain set to my hosting servers nameservers.

    Under Domain Options I have only 2,3 selected:
    # Permanent redirect (better for your blogger’s pagerank)
    # User domain mapping page

    I also have registration disabled. Although I do not see anywhere in the wp-config.php file where I can set the NOBLOGREDIRECT per the admin instructions.

    ——————–

    So to setup a site I have tried the following:

    1) Super Admin > Sites: I have entered the site name (abc) the site title (ABC Demo) and the Admin Email ([email protected])

    2) Super Admin > Domains: I enter the new sites site ID (2) and then the domain I want to map it to (abcdomain.com) I do not select the Primary, as I assume that means the primary site or my main domain. Which it is not.

    3) cPanel > Parked Domains: I add the new sites domains (abcdomain.com) to the parked domains in cpanel – making sure that the nameservers for abcdomain.com are pointing to the hosting servers nameservers – just like my main domain. I even when into the domain registrar and added a www summary to redirect the https://www.domain.com to the IP of the main domain. (Note: did not work with or without this)

    This should be all right??

    If I go to abc.maindomain.com it works just fine.

    Now when I go to the abcdomain.com or https://www.abcdomain.com it redirects me to the disabled registration page… Not sure why.

    Then their is the issue of the user logins…

    1) Super Admin > Users: I go to the new user that was created and edit that account. I make his an administrator (but not a super admin). I then set the password. Making him an admin also makes him an admin on the main domains site. When I login to the admin area, it takes me to the main domains admin dashboard. If I go back and change the user to “No Role for this Site” then when I login I am taken to the abc.maindomain.com admin dashboard.

    <b>Problem</b>

    1) Why is the domain mapping not working. What did I miss or screw up?

    2) Why when I login to the new sites admin can I see all the plugins even those none are network activated, how can I only show the plugins I want, and not all of them.

    Thanks for trying to help!

    2) Super Admin > Domains: I enter the new sites site ID (2) and then the domain I want to map it to (abcdomain.com) I do not select the Primary, as I assume that means the primary site or my main domain. Which it is not.

    Wrong assumption. ??

    It means the primary domain for the site you’re mapping. Yopu can map more than one domain to a particular site. Check it off.

    Then their is the issue of the user logins…

    1) Super Admin > Users: I go to the new user that was created and edit that account. I make his an administrator (but not a super admin). I then set the password. Making him an admin also makes him an admin on the main domains site. When I login to the admin area, it takes me to the main domains admin dashboard. If I go back and change the user to “No Role for this Site” then when I login I am taken to the abc.maindomain.com admin dashboard.

    When you add a new site, if you use a different email, it will send user login & password info to that email address. you do not have to reassign the user to any site. They will have that site listed as their primary domain, and will be redirected to that site on login.

    Thread Starter brightfire

    (@brightfire)

    OK I checked off the primary for the domain mapping of the new site. It still redirects me to the wp-signup page when I try to go to the abcdomain.com or https://www.abcdomain.com

    Any ideas?

    Thread Starter brightfire

    (@brightfire)

    Well after deleting and recreating the account/site/networks and everything multiple times I finally got it to work…

    However, I still would like to have my main website use the www. I am not sure how that can be done. Currently it just redirects the www. to the non-www. ie. https://www.abcdomain.com –> abcdomain.com

    How could I get it to not keep redirecting it and still keep the rest of the site working?

    You have to set up your server to have www as the main site. WordPress (on install) just grabs whatever is set as the default.

    You may have to get your webhost support to help set it that way. then you’ll have to edit the db and change all the references.

    Thread Starter brightfire

    (@brightfire)

    During one of my installs I tried to use the https://www.abcdomain.com and then use the sub-domains for the network. That did not seem to work. If I do set up the site with the www. do I have to use sub-directories or can I use sub-domains for the network.

    When it comes to domain mapping, does it really matter which is used (sub-domain or sub-directory)?

    During one of my installs I tried to use the https://www.abcdomain.com and then use the sub-domains for the network. That did not seem to work. If I do set up the site with the www. do I have to use sub-directories or can I use sub-domains for the network.

    Subdomains or subdirectories has absolutely no bearing on if you use www or not. really. Not on domain mapping either.

    If the subdomains didn’t work for you, it wasn’t due to the www. But saying “That did not seem to work” doesn’t give me any indication of *what* didn’t work.

    If you use subdomains you absolutely need to set up wildcard subdomains on the server & in your dns records as it is outlined in the codex and the sticky here in this forum.

    Thread Starter brightfire

    (@brightfire)

    OMG – I think I finally got it.

    So here are the steps I used and how I finally got it all set up.

    1) I created my cPanel Hosting Account for the domain abcdomain.com

    2) I then logged into that hosting account and FTP’d up the latest WP version.

    3) I installed WP by going to the https://www.abcdomain.com URL during the install.

    4) Once installed I added the following to the wp-config.php:
    define(‘WP_ALLOW_MULTISITE’, true);

    5) I then setup my network to use sub-directories.

    6) Next I installed the Domain Mapping Plugin – using the instructions on the plugin website. Note, since I used sub-directories I did not need to setup a wildcard DNS entry.

    7) Once I logged back into the admin it created the Mapping Tables and I configured the Super Admin > Domain Mapping with the IP of the site and checked off boxes 2 & 3.

    8) Now with all that done I was able to setup my sites including setting up the parked domain in cpanel.

    I did notice that when mapping a domain I set the https://www.domain.com as the primary one then I created a secondary domain with domain.com and did not check the primary box. What this does is allows me to go to https://www.domain.com or domain.com and have it redirect me to https://www.domain.com

    Works Perfectly!!

    Thanks Andrea for the help and insight!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Startup Questions for MU’ is closed to new replies.