Hello!
I set up a multisite with a domain mapping.
Everything works fine, besides that I'm just able to login/change to the network admin panel on one computer.
On every other computer it's not possible to get to the network admin panel. It redirects me immediately to this domain ->
http://www.mydomain.com/wp-login.php?redirect_to=http%3A%2F%2Fmydomain.com%2Fwp-admin%2F&reauth=1
What is wrong with the redirection? I deleted all cookies/cache and so on... it's the same situation on all browsers on other computers?!
ok. I justed cleared the cache on the computer, which provides me access to the network admin panel until now and it's gone...
Pretty bad that I can't access it anymore - but at least it makes a little more sense now.
base domain is: mydomain.com
mapped domains are:
http://www.mydomain.com
and http://www.mydomain.de
I guess the problem is that the redirect points at mydomain.com... ?!?
The server DNS mydomain.com and http://www.mydomain.com point to the same ip adress.
You say the base domain AND a mapped domain is mydomain.com? You can't do that. You can't map ANYTHING to the base domain. You can only map to the subsites.
Thank you for your answer.
The base domain is mydomain.com (without the www) and one of the mapped domains is http://www.mydomain.com -> is mapped to mydomain.com/english and the other domain http://www.mydomain.de is mapped to mydomain.com/deutsch
The domain mapping works pretty well besides the fact that I can't access the network admin anymore.
The base domain is mydomain.com (without the www)
AND
http://www.mydomain.com -> is mapped to mydomain.com/english
You cannot do that. That's what's wrong. http://www.mydomain.com is the SAME as mydomain.com in so far as web things go.
You're going to have to edit your database, find that mapping, and remove it.
so how would you resolve my situation?
I do have this base domain mydomain.com
and I would like to have these domains:
1) http://www.mydomain.com (pointing to mydomain.com/english)
2) http://www.mydomain.de (pointing to mydomain.com/deutsch
So I only need one?! domain mapping for the http://www.mydomain.de domain to mydomain.com/deutsch?
thanks a lot for your help Ipstenu. would you mind giving me some more advice what entries to change in the database?
To 'fix' you would look in your database for wp_domain_mapping
You SHOULD be able to delete the entrie(s) for http://www.mydomain.com but honestly I don't know if that will work.
and I would like to have these domains:
1) http://www.mydomain.com (pointing to mydomain.com/english)
2) http://www.mydomain.de (pointing to mydomain.com/deutsch
Can't do #1. I'd export everything from /english and put it in http://www.mydomain.com
But why is it working then? if it's not possible to point to that subdirectory?
May I ask to contact you directly? I would really appreciate some advanced (paid) help here. I can't risk to be offline with this website.
Ok. Fine. I moved the whole site from /english to /
the standard page is also available under the base domain mydomain.com
That's perfect.
And the domain mapping does that the other domain: http://www.mydomain.de points to mydomain.com/deutsch
Only thing that have to be changed that I want my "base" domain to be http://WWW.mydomain.com
.htaccess redirect? But would it replace all links within the code from non-www to www links?
Fine! I figured it out :) Perfect.
I just changed my MAIN domain to the standard webhosting domain blabla.webhost.com and created two domains via the domain mapping plugin.
1) blabla.webhost.com/english -> http://www.mydomain.com
2) blabla.webhost.com/deutsch -> http://www.mydomain.de
works perfectly + access to network admin is working ;)
One last question:
Almost every image from the media gallery is using the new domain (www.mydomain.com) but the featured images for instance use the "raw"url (blabla.webhost.com/english/wp-content/...)
The domain mapping plugin offers a setting to change the SiteUrl: when I change this from http://blablaba.webhost.com/english/ to http://www.mydomain.com all images show as source the perfect domain. but the permalinks aren't working anymore :(
1) blabla.webhost.com/english -> http://www.mydomain.com
2) blabla.webhost.com/deutsch -> http://www.mydomain.de
Yes, you can do that.
I don't know what's up with featured images. I've never had that problem.
But the system is right I guess? within wordpress the file url of all uploaded images via the media manager is blabla.webhost.com/english/wp-content/uploads...
and the domain mapping plugin translates that into http://www.mydomain.com/wp-content/... Am I right here?
That's how it works for me on my sites.