I've installed the WPMU domain mapping plugin but I can't get the site to resolve to the "www" subdomain for each site which I need. I tried adding an entry in the htaccess file but this just causes a loop and times out without resolving.
Is there any way round this? Thanks.
I've installed the WPMU domain mapping plugin but I can't get the site to resolve to the "www" subdomain for each site which I need. I tried adding an entry in the htaccess file but this just causes a loop and times out without resolving.
Is there any way round this? Thanks.
Agree but I believe that's what the poster was saying wasn;t working. Using the 'www' drops the visitor into a loop [typo fixed ~ drmike] that never went anywhere.
The WPMU Install is on http://moneytransfercompany.com - I set this up to manage all the sites. (I could not set it up directly on the site I want to transfer because the content has to be in place before I switch the dns.) So I set up a sub-domain en.moneytransfercompany.com - which will be mapped to http://www.dahabshiil.com (main site) when I have posted the content in wpmu.
I set up uk.moneytransfercompany.com and tried to map it to http://www.dahabshiil.co.uk - the domain mapping plugin works however it does not save it as www. and instead resolves to the non-www site. Rather than messing around with database entries I tried adding an entry in the htaccess...
RewriteEngine On
RewriteBase /
<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>
... but i get this error...
"Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked."
I tried clearing dns by running the ipconfig /flushdns but still same error.
Thanks Aaron - I am going to try Andrea's multi-site plugin - I have a feeling that may work - but wanted to exhaust my possibilities with the WPMU supported plugin first. Will post back if I get the other plugin to work.
Just updating this thread in case anyone else needs to do what I am doing - i.e using WPMU as a content management system for multiple country websites.
I got the desired results by modifying the domain-mapping.php and sunrise.php files.
I replaced the
$domain = $this->db->escape( preg_replace( "/^www\./", "", $_POST[ 'domain' ] ) );
with
$domain = $_POST[ 'domain' ];
I am not sure if it is going to have any side effects but so far so good.
THe only problem now is that the non-www domain does not resolve - even if I modify the .htaccess file.
I think its because I changed the DNS zone file from a CNAME to an A record - so I have changed it back now to see if that is the problem - but can't see why it should be because my understanding is that the htaccess file is queried by the server before any other files.
Thanks, searchgap. How exactly do you modify the sunrise.php file? There is no $domain in there. I tried with the $using_domain, but I'm getting a fatal error. Unfortunately, I'm not versed in PHP (or any other programming language, for that matter), so this is just a trial-and-error for me.
Also, if the non-www version doesn't 301-redirect to the www-version, what is the solution? Thank you!
I too am trying to get www. domains to work. Can someone detail searchgap's fix more clearly? I would rather get this module to work rather than ripping it out and replacing it with Donncha's.
okay, gave up on this plugin too. I also went with Donncha's domain mapping plugin, which did the trick. Its a shame when the paid plugin is not as robust as the freely available one though.
I'm with @klagreca - I have been a member (fully paid) here for a bit and I had hoped that given how expensive it is these plugins would completely blow away the free ones. However, sadly, they simply don't in many cases.
I am still getting value for my $$$, and I like the team and concept here... but it is distressing.
I'll ask our devs to take another look at this plugin. Our plugin here is very different from the free one in the WordPress repository. Not only is it coded to handle the domain mapping differently - it's got built in compatibility to be used with mutli-domains and Supporter among others.
Still, we'll take another look and report back. :)
Anther two weeks have passed.
Is anyone having a look at this or not?
I'm pretty close to cancelling my WPMU membership to be honest, I don't see why I pay big bugs monthly to have a support than most free plugins have...
It is pretty disturbing. The whole point of paying this much money is the support and if that isn't goign to happen then it is just a waste of resources.
Just to say we are still looking at this. It's a complex issue though; WP Multsite as standard doesn't support WWW so what we're asking is to force WP to recognise WWW. That's dodgy because it could cause all sorts of problems elsewhere.
I understand what you're saying about the free mapping plugin. With ours, you're not just getting domain mapping - you're getting integration with all our other plugins which greatly increases it's value - it enables you to build businesses off this stuff. That means that development is more complex and the opposite feature in the free plugin is much less complex.
As always we appreciate your patience while we get a solution out that works fully.
Yep. We're on it. Expect a release in the near future :) We're talking with a few other domain mapping plugin developers in order to find the best solution for everyone. Thanks for your patience. We're doing a pretty major rewrite on it, but the end result will be awesome.
Responses (30)
Keeper of the Dark Chocolate — 31st December 2009 #
Greets and welcome. :)
It would be helpful if you told us what you had added to the htaccess file. We may see what you've done wrong.
The specific domains would also be helpful. Something may be setup incorrectly with DNS. (I can move this over to the private side if requested.)
Please also check your webserver's error logs to see if anything has been dropped in there.
Erstwhile founder — 1st January 2010 #
Hiya,
Out of the box WPMU is designed to work without the www.
Thanks,
Andrew
Keeper of the Dark Chocolate — 2nd January 2010 #
Agree but I believe that's what the poster was saying wasn;t working. Using the 'www' drops the visitor into a loop [typo fixed ~ drmike] that never went anywhere.
Erstwhile founder — 3rd January 2010 #
Ah, I see.
@searchgap,
Can we get a link to the site?
Thanks,
Andrew
Member — 4th January 2010 #
Nice to meet you both. Thanks for the help.
The WPMU Install is on http://moneytransfercompany.com - I set this up to manage all the sites. (I could not set it up directly on the site I want to transfer because the content has to be in place before I switch the dns.) So I set up a sub-domain en.moneytransfercompany.com - which will be mapped to http://www.dahabshiil.com (main site) when I have posted the content in wpmu.
I set up uk.moneytransfercompany.com and tried to map it to http://www.dahabshiil.co.uk - the domain mapping plugin works however it does not save it as www. and instead resolves to the non-www site. Rather than messing around with database entries I tried adding an entry in the htaccess...
RewriteEngine On
RewriteBase /
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
RewriteRule ^(.*/)?sitemap.xml wp-content/sitemap.php [L]
# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ $1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
RewriteCond %{HTTP_HOST} ^dahabshiil\.co.uk [NC]
RewriteRule (.*) http://www.dahabshiil.co.uk/$1 [R=301,L]
<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>
... but i get this error...
"Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked."
I tried clearing dns by running the ipconfig /flushdns but still same error.
Lead Developer — 4th January 2010 #
Your rewrite is redirecting to the www, then WPMU is redirecting back, so it loops.
As Andrew said, MU does not support www. I think there is a way to fudge it but you will have to search the forums for "www".
Member — 4th January 2010 #
Thanks Aaron - I am going to try Andrea's multi-site plugin - I have a feeling that may work - but wanted to exhaust my possibilities with the WPMU supported plugin first. Will post back if I get the other plugin to work.
Cheers.
Richard
Member — 7th January 2010 #
Just updating this thread in case anyone else needs to do what I am doing - i.e using WPMU as a content management system for multiple country websites.
I got the desired results by modifying the domain-mapping.php and sunrise.php files.
I replaced the
$domain = $this->db->escape( preg_replace( "/^www\./", "", $_POST[ 'domain' ] ) );
with
$domain = $_POST[ 'domain' ];
I am not sure if it is going to have any side effects but so far so good.
THe only problem now is that the non-www domain does not resolve - even if I modify the .htaccess file.
I think its because I changed the DNS zone file from a CNAME to an A record - so I have changed it back now to see if that is the problem - but can't see why it should be because my understanding is that the htaccess file is queried by the server before any other files.
Erstwhile founder — 7th January 2010 #
Glad you got it resolved :)
Thanks,
Andrew
Member — 24th December 2010 #
Thanks, searchgap. How exactly do you modify the sunrise.php file? There is no $domain in there. I tried with the $using_domain, but I'm getting a fatal error. Unfortunately, I'm not versed in PHP (or any other programming language, for that matter), so this is just a trial-and-error for me.
Also, if the non-www version doesn't 301-redirect to the www-version, what is the solution? Thank you!
Member — 24th December 2010 #
I ended up going with the Donncha's domain mapping plugin, which does support the 'www'.
Member — 13th January 2011 #
I too am trying to get www. domains to work. Can someone detail searchgap's fix more clearly? I would rather get this module to work rather than ripping it out and replacing it with Donncha's.
Thanks!
Member — 14th January 2011 #
okay, gave up on this plugin too. I also went with Donncha's domain mapping plugin, which did the trick. Its a shame when the paid plugin is not as robust as the freely available one though.
Member — 26th January 2011 #
Hi there,
I really think this is an issue as well.
Who is in charge of this plugin?
I'd be willing to pay for an adaption to make this work...
Thanks,
Robert
Member — 12th March 2011 #
Any news on this?
Member — 28th March 2011 #
I'm with @klagreca - I have been a member (fully paid) here for a bit and I had hoped that given how expensive it is these plugins would completely blow away the free ones. However, sadly, they simply don't in many cases.
I am still getting value for my $$$, and I like the team and concept here... but it is distressing.
Sales & Support Lead — 29th March 2011 #
Hiya guys,
I'll ask our devs to take another look at this plugin. Our plugin here is very different from the free one in the WordPress repository. Not only is it coded to handle the domain mapping differently - it's got built in compatibility to be used with mutli-domains and Supporter among others.
Still, we'll take another look and report back. :)
Thanks again!
Member — 29th March 2011 #
Hi there,
this really is an issue that I'd be happy to see resolved.
I tried searchgaps solution, but came up with the following problem:
I can only find the line entioned in domain-mapping.php. Replacing it doesn't have any effects, it still shows w/o the www.
in sunrise.php, I only have this line which is a bit different:
$using_domain = $wpdb->escape( preg_replace( "/^www\./", "", $_SERVER[ 'HTTP_HOST' ] ) );
so I wasn't brave enough to change this one...
Any ideas?
Thanks
Robert
Member — 17th April 2011 #
Anther two weeks have passed.
Is anyone having a look at this or not?
I'm pretty close to cancelling my WPMU membership to be honest, I don't see why I pay big bugs monthly to have a support than most free plugins have...
Member — 17th April 2011 #
have a worse support, sorry
Member — 17th April 2011 #
It is pretty disturbing. The whole point of paying this much money is the support and if that isn't goign to happen then it is just a waste of resources.
Sales & Support Pro — 18th April 2011 #
Hiya guys,
Just to say we are still looking at this. It's a complex issue though; WP Multsite as standard doesn't support WWW so what we're asking is to force WP to recognise WWW. That's dodgy because it could cause all sorts of problems elsewhere.
I understand what you're saying about the free mapping plugin. With ours, you're not just getting domain mapping - you're getting integration with all our other plugins which greatly increases it's value - it enables you to build businesses off this stuff. That means that development is more complex and the opposite feature in the free plugin is much less complex.
As always we appreciate your patience while we get a solution out that works fully.
Phil
Member — 7th May 2011 #
So, it's been another 2 weeks since Phil's reply. Any more news on this?
Sales & Support Lead — 8th May 2011 #
Hiya guildmeister,
Yep. We're on it. Expect a release in the near future :) We're talking with a few other domain mapping plugin developers in order to find the best solution for everyone. Thanks for your patience. We're doing a pretty major rewrite on it, but the end result will be awesome.
Thanks again!
Member — 11th May 2011 #
Great to hear that, thanks David!
Member — 19th June 2011 #
Hi,
Is there any news on a fix for this problem?
I have installed domain mapping plugin and would like to redirect www domains as well as non www domains.
Sales & Support Pro — 21st June 2011 #
You might want to try out the solution here while we look into supporting this:
http://premium.wpmudev.org/forums/topic/redirect-subdomain-typos-to-correct-subdomain#post-106653
Phil
Member — 21st June 2011 #
Another one and a half months after the "near future" announcement.
Sales & Support Lead — 27th June 2011 #
Thus why we don't provide ETAs :)
Member — 12th July 2011 #
There is a fix for this problem, use this plugin instead: http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/
And add 2 domains pointing to the same blog, one with www and one without. You can also choose what is the "primary" one it should redirect to.
Become a member