In April I created a site in a subdomain called http://p-school.bigcitylittlehomestead.ca using the MultiSite Network Admin.
I’ve developed a site in it, and now I’m ready to point my domain projectica.org to that directory. **However, I cannot find p-school in my host server directories!** And I’m freaking out… because the only alternative I can think of is to restart from scratch creating a new directory (which might just repeat this problem), and export/import the site I just developed.
Could this instead be something being stored on WordPress.com? Not like that would help matters, because I need to point the domain to a home/subdirectory from my shared hosting service.
I don’t understand…why it would not have created a folder called p-school and put everything there. Moreover, I just need to solve this problem, the short way or the long way, whatever they may be.
Yep, WP multisite just does not work like this. But you can map the domain even without a plugin since WP 4.5: https://codex.wordpress.org/WordPress_Multisite_Domain_Mapping
Thanks for your help!
But do you know why WP MU would do this (not use a subdirectory – as at the hosted provider, they do/must create a subdirectory for addon domains, which makes sense)? I have a hosted server that I use, I must addon the domain there to setup the cname and A records (which actually set themselves up; the IP addresses are correct).
The Codex still is baffling – it’s not explicit to “check this at your host.”
When I go to the Sites in MU, which is based off my baseline domain bigcitylittlehomestead.ca, Domain Mapping is about the root domain – I’m loathe to make any changes there, it appears that I have a dedicated IP address anyway. The mucking around that I have been doing has been slowing my site down BIG TIME… If I click Domains, it has the fields “Site ID, Domain, Primary” which doesn’t mean anything to me… I had created a new Site ID for projectica, but I got rid of it.
On a positive note, I have followed this point: “In the network admin dashboard, click on Sites to show the listing of all the subsites, and then click on edit for the subsite you want to map to. In our example, this is subsite1.mynetwork.com.
In the Site Address (URL) field, enter the full URL to the domain name you’re mapping – http://mappeddomain.com – and click save.”
Now I’m waiting to let things propagate and hope that it works. I’m still expecting to have a problem here as of 15 minutes later, my ISP is still directing http://projectica.org to the subdirectory that they created for it. (This is the donut – back to the top of this reply!)
As seen in cPanel:
Addon Domains Document Root Subdomain Redirects to Actions
projectica.org /projectica p-school not redirected (Remove | Manage Redirection)
- This reply was modified 6 years, 6 months ago by janerette.
Updated to mention: I did not use the plugin yet, as I didn’t see this had two replies I followed the native WP 4.5 domain mapping config field. It has now been 3 hours since I changed the domain in the Network Admin from p-school.bigcity… to projectica.org – and it’s still looking in the directory. What’s even worse is that p-school now redirects to that same empty directory. Really, the domain should be pointing to what exists at p-school.
It looks like I will just have to restart from scratch. Frekin’ dark magic happenin’s.
I think the reason why they didn’t do the subdirectory install of the subdomain site was to avoid confusion between subdirectory sites (e.g. bigcity….ca/p-school) and subdomain sites (p-school.bigcity….ca)
I can’t help but wish how to do this were clearer… I’ve tried using an alias at the host, and it isn’t resolving properly for me to see if it’s satisfactory. Though I backed off all changes and p-school now loads like it should, the alias projectica.org now ends up on this page here:
I’ll keep working on this obviously but right now it makes me want to cry.
- This reply was modified 6 years, 6 months ago by janerette.
OH for CRYING OUT LOUD it has now wrecked the perfectly adequate, accurate pointing of a different subdomain! FML
Relax, it is easy :). Just add the domain as addon domain and choose it to point to the folder of the multisite. Then change the site URL from the edit site link in the multisite network admin dashboard, and you are done. If it is not showing on your computer properly, it is just dns cache. I use https://netrenderer.com/ to see what it will show there, seems to not cache results there.
Hey guys, thank you so much for the tips and feedback. I’m going to fix the link and poke around with the Add-on, but…
*** update: followed this advice. Deleted the Alias pointing to the public_html root with subdomain p-school. Did and Add-on with the same information. Went to my dashboard in Network Admin and p-school was already mapped to projectica.org. If I Edit site, it still says “p-school…” But I’m not touching it, because I opened a new browser and tested and everything, including the links that were problematic below, worked! ***
Yesterday the tech support guy did manage to get projectica.org to point to where I wanted it to. But all links point to the subdomain p-school.… Of course this is NOT what I want. I want every link, every URL to be projectica.org/… He said that for me to have all links be based on the domain, I’d need to open up the SQL database and change all links from p-school… to projectica.org
In fact, if you click the links within my main content, they just take you to the Admin page on bigcity… that I mention in a previous post ^^ which makes no sense at all.
Ideally even if there were a problem, they would not connect back to Big City… Ideally (I will get there one day?) if there’s a problem they’d lead to an error page on projectica.org (using our own header graphic)
This is aggravating me and I don’t see why it’s so difficult! Something must be wrong.
**MORAL OF THE STORY: A DOMAIN ALIAS DOES NOT REWRITE URLS AND CONNECT CONTENT LIKE AN ADD-ON DOMAIN, it looks like it only re-points once.**
***SECOND RULE: WPMU SUBDOMAIN IMPLEMENTATIONS CONTAIN ALL SUBDOMAIN INFORMATION AT THE ROOT public_html DIRECTORY – YMMV if you do a WPMU subdirectory implementation for your subdomains.***
I have submitted projectica.org to the google search console but I will not submit the XML sitemap or do anything further until this is all fixed
*** NOW THAT THE LINKS ARE WORKING I WILL DO THIS**
Also, THANK YOU @axel13 for liking my FB page! I appreciate it.
Dammit. This is NOT done. Projectica.org redirects to p-school. It does NOT show Projectica.org as the URL.
Am I the only person in the universe who can’t get this right?
And it seems that domain mapping has disappeared from my Network Admin.
Yes. Domain Mapping has disappeared from the Settings on my Network Admin. I have reinstalled WP 4.7.5 and it has not come back.
I’ve added the WP Domain Mapping plugin and activated it. That’s all I can do now. I’m disappointed that this has been so frustrating and the real problem, about pointing the domain to the WordPress site and letting the domain own it, is just not working. I don’t want a redirect. That’s what I have.
Well WordPress does not have Domain Mapping menu. This is from the plugin, and you do not need it. Either use the plugin or use the built in feature, don’t do both.
I have no idea what are you and the support guys doing exactly, but you have somehow made a big mess of something simple :).
If you want to change the domain of links in posts and other custom links you have added here and there, there are plugins for this. For example I have used Automatic Domain Changer, but I haven’t tested it with a multisite though.
I don’t see anything unusual… Projectica.org loads without redirect, internal links too.
If I Edit site, it still says “p-school…”
Do you mean the WordPress Administration is still at the main site? I don’t know how WordPress handles this, and haven’t used the WordPress MU Domain Mapping plugin in quite a while, but that may be the default choice. In the plugin there may be a setting for it… not sure though. But is it a problem when it is to be expected? Or am I missing something?
Hi @nnikolov, it was my not understanding where to point the domain without a folder that opened up the can of worms, I came to understand that WordPress hides the magic in the public_html, and at host’s cPanel, you point your domain there, and specify the name of the development subdomain just so it “knows” which one of several to serve.
However there was, I am sure, the Domain Mapping tool in WP 4.7.5 at the Network Admin > Settings menu – four items that I recall have now become just two: Network Settings and Network Setup. The domain menus have disappeared or hidden themselves. In any case it is working now; it just took time to propagate.
Thank you again, @axel13! I think my issue with the URL and the links was simply due to time to propagate. Since a friend visited it last night, and I again this morning, things are working. I am glad to have this resolved – and the missing website (from my “For cryin’ out loud” post, where rewilding.big… went down for a bit) was similarly restored.
- The topic ‘Panic: Multisite user, blog subdomain, can’t find the root folder!’ is closed to new replies.