• Im running into an issue that i cannot resolve and am hoping you all can help me.

    I have 1 main standalone wordpress site on my host and then today i bought a few new domains and then set up a new multi site install on one of the domains. I added a new site that corresponds to a domain i parked in cpanel. I then went through the domain mapping config and added the domain that i have parked and pointed it at the correct site id. When i go to the parked domain it takes me to the standalone site that i have hosted rather than my networked site or the network admin site.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Not sure what you’re trying to do. If you are trying to point different domain names at the same site, the normal use of parked domains, you don’t use domain mapping for that, but rather .htaccess.

    “set up a new multi site install on one of the domains” — you have to have WordPress installed in the root of your account (or the root of a subdomain, created by CPanel or comparable program) for domain mapping to work — this isn’t a limitation of the plugin but rather of DNS, which has to be able to direct visitors to the proper place.

    Then you need to have the plugin installed properly, and configured properly. Knowing the correct site id is part of that. I have detailed Domain Mapping instructions.

    You probably need to have the domain as an Add-On domain, not as a Parked domain. And you must have “wildcard DNS” set up.

    Plugin Author Ron Rennick

    (@wpmuguru)

    Based on the original post, it looks like the step that was missed was changing the DNS for the mapped domain to point it to the new install.

    Jason Hendriks

    (@jasonhendriks)

    Hello there. I’m having a similar, possible same, issue. I blogged about it here under “known issues”.

    Specifically, as @hermy65, when I’m on the network admin site, “When i go to the parked domain it takes me to the standalone site”, happens for me too.

    In more detail, when I am here : http://wordpress-hendriks.rhcloud.com/programmer/wp-admin/ clicking Visit site (http://wordpress-hendriks.rhcloud.com/programmer/) should show me my mapped domain subsite. But instead it redirects me to Site 0 (http://wordpress-hendriks.rhcloud.com).

    Conversely, when I’m here : http://www.codingmonkey.ca clicking Coding Monkey in the WordPress top nav (http://www.codingmonkey.ca/wp-admin/) when logged in as site admin should show me the dashboard. But instead it redirects me to a 404 (http://www.codingmonkey.ca/programmer/programmer/wp-admin/).

    Any information you need, or logs etc., I’d be happy to share. I’m using v0.5.5.1, and although this is my very first time using this plugin, I’m confident this behaviour is incorrect 😉

    Jason

    Jason,

    You said “When i go to the parked domain…”

    I have never used parked domain “ideal for multiple domains sharing the same website”. Maybe Ron will specify whether that works for CPanel-created parked domains? (Your setup is Very different, I have no idea whether they work or are identical or wont work.)

    I have always used add-on domain “used for a website separate than the main one”.

    Where should the add-on domain point to on your account? The same folder as your WordPress installation. (Which must be the root of your account, or the root of a subdomain of your account; it must not be a subfolder. From the non-standard folder shown in the error message on your http://www.codingmonkey.ca/wp-login.php page I can only guess you might have WordPress installed in a subfolder.) You may need your tech support people to do this, you can’t have WordPress managing the domain if the domain is being sent to a different folder, make sense?

    You then have to have the proper values in the domain mapping setup and site setup. Your “/programmer/programmer” 404 error is very likely from this. See my Domain Mapping Instructions link.

    p.s. WordPress can’t be installed in a subfolder. That’s different than “Multi-Site in Subfolder Mode” (or subdomain mode); either subfolder or subdomain mode work with domain mapping, if and only if WordPress is installed in a root.

    @ron — Please specify whether the domain mapping plugin works for CPanel-created parked domains as well as for add-on domains? (I know that add-on domains works.)

    Jason Hendriks

    (@jasonhendriks)

    @lernerconsult, thanks so much for the reply!

    I can only guess you might have WordPress installed in a subfolder.

    No. As I mentioned in my blog post, WordPress is installed in the root.

    [wordpress-hendriks.rhcloud.com 55090f96fcf933bf4800009b]\> ls ~/app-root/repo/
    index.php    readme.html      wp-admin		  wp-comments-post.php	wp-config-sample.php  wp-cron.php  wp-links-opml.php  wp-login.php  wp-settings.php  wp-trackback.php
    license.txt  wp-activate.php  wp-blog-header.php  wp-config.php		wp-content	      wp-includes  wp-load.php	      wp-mail.php   wp-signup.php    xmlrpc.php

    either subfolder or subdomain mode work with domain mapping

    I chose the subfolder-type installation as my host, OpenShift.com, does not allow for subdomains.

    You may need your tech support people to do this

    That’s me 😉

    You then have to have the proper values in the domain mapping setup and site setup. Your “/programmer/programmer” 404 error is very likely from this

    I suspect that I do have a configuration problem. What would you like to see?

    To be proactive here are some screenshots:

    Ooooh, at highly technical discussion…. When I wrote “tech support do this” I was betting you’d reply “that’s me”.

    “As I mentioned in my blog post, WordPress is installed in the root.” — Showing a list of files doesn’t answer the question. Need to know whether DNS gets directly to this folder, or there are redirects needed. You can’t (or you’re highly technical so perhaps you can but it’s certainly a lot of unneeded work) have redirects to this folder and have redirects for domain mapping.

    “host does not allow wildcard aliasing” — a host that gives you command line access, GIT, etc but not wildcard DNS, wow. They probably answered a different question than you asked them. But no problem, multi-site in subfolder mode works.

    You have my instruction page, go through all the steps. Quick glance at those images, looks good.

    If you find anything different or unclear for your very non-standard hosting setup, please let me know!

    Plugin Author Ron Rennick

    (@wpmuguru)

    Domain parking is mainly a cPanel term. Most other web host control panels call it a domain alias. If you are using cPanel then parking the domain is the preferred implementation (over using an addon domain).

    Jason Hendriks

    (@jasonhendriks)

    @lernerconsult, I don’t know why you feel the need to insult me. That’s completely unnecessary.

    • “They probably answered a different question than you asked them.” – No need to be an ass. I didn’t ask OpenShift.com any questions
    • “Need to know whether DNS gets directly to this folder” – DNS is for mapping to IPs, and yes, for the second time, the website URL root maps directly to the webdoc root
    • “host does not allow wildcard aliasing” – No, I wrote “host does not allow for subdomains”. GoDaddy manages my DNS and they do allow wildcard aliasing, and that’s completely irrelevant for as I said, I can’t create subdomains on the web host.
    • “Showing a list of files doesn’t answer the question” – No, but “WordPress is installed in the root” did.
    Jason Hendriks

    (@jasonhendriks)

    @wpmuguru, thanks for replying. Unlike the OP, I don’t have any parked domains, nor do I have a cPanel interface. Feeling kinda discouraged now. Any chance I could get you to poke around with an admin account on the multisite?

    Plugin Author Ron Rennick

    (@wpmuguru)

    If the request isn’t going to your multisite install then the issue is either with your DNS or your web server configuration.

    It’s possible that your web server wasn’t restarted after you made your configuration changes. Do you have the option to restart your web server?

    Jason Hendriks

    (@jasonhendriks)

    If the request isn’t going to your multisite install then the issue is either with your DNS or your web server configuration.

    The request is definitely going to the multisite install. The only place the mapped domain knows about the subsite is through the WPMU Domain Mapping configuration.

    The original site domain: http://wordpress-hendriks.rhcloud.com <- works 100%
    The subsite: http://wordpress-hendriks.rhcloud.com/programmer <- redirects to root 🙁
    And the mapped site: http://www.codingmonkey.ca/ <- works, but buggy behaviour

    Here’s the ‘mapped’ domain CNAME:

    www.codingmonkey.ca.	IN	CNAME	ec2-54-82-146-173.compute-1.amazonaws.com.

    And the DIG A results for the original domain:

    wordpress-hendriks.rhcloud.com.	47 IN	CNAME	ex-std-node225.prod.rhcloud.com.
    ex-std-node225.prod.rhcloud.com. 59 IN	CNAME	ec2-54-82-146-173.compute-1.amazonaws.com.
    ec2-54-82-146-173.compute-1.amazonaws.com. 21599 IN A 54.82.146.173

    Clicking codingmonkey.ca shows the WordPress subsite, and that’s the result of the Domain Mapping plugin.

    It’s possible that your web server wasn’t restarted after you made your configuration changes. Do you have the option to restart your web server?

    I do. In fact every time I deploy the PHP files with GIT, OpenShift automatically restarts both MySql and Apache.

    Jason Hendriks

    (@jasonhendriks)

    @wpmuguru, I’ve got repeatable behaviour that I think might narrow it down to problems with the request or state. I used a fresh browser (private browsing) to perform this test.

    Scenario 1 – pass:

    1. Navigate to http://www.codingmonkey.ca – public site shows
    2. Click Login link – successful redirect to http://wordpress-hendriks.rhcloud.com/programmer/wp-login.php
    3. Login – successful redirect to http://wordpress-hendriks.rhcloud.com/programmer/wp-admin/
    4. Navigate to http://codingmonkey.ca/wp-admin/ – successful redirect to http://wordpress-hendriks.rhcloud.com/programmer/wp-admin/this step can be repeated with the same correct result

    Scenario 2 – fail:

    1. Navigate to http://www.codingmonkey.ca – public site shows
    2. Click Login link – successful redirect to http://wordpress-hendriks.rhcloud.com/programmer/wp-login.php
    3. Login – successful redirect to http://wordpress-hendriks.rhcloud.com/programmer/wp-admin/
    4. Navigate to http://codingmonkey.ca/ – public site shows
    5. Navigate to http://codingmonkey.ca/wp-admin/ – I’m redirected to http://www.codingmonkey.ca/programmer/programmer/wp-admin/ and get a 404 response – this step can be repeated with the same incorrect result

    So know I know how to trigger the problem. Just have to figure out why. Going back to the public site after logging in must be altering the subsequent requests in a way that confuses the plugin.

    Does that give you any ideas?

    Plugin Author Ron Rennick

    (@wpmuguru)

    The request is definitely going to the multisite install.

    Postman SMTP – That means you do not have the same issue as the original poster. They explicitly said that the request was going to a different install.

    When I see a second poster in a thread post something like

    Hello there. I’m having a similar, possible same, issue.

    and I already know what the first poster’s issue is, I do not read through the details that the second has posted.

    Try the following:

    – deactivate all plugins except domain mapping on the site in question
    – switch to a twenty* theme

    if you still have the issue post a new thread that includes all the steps you took to set up the mapped domain.

    Jason Hendriks

    (@jasonhendriks)

    Thanks Ron. I already tried deactivating all plugins and using the default theme. I’ve downloaded the plugin trunk and I’m going to see if I can make any headway by playing with the code. Sorry for hijacking the thread, the OP and subject sounded like my issue, but now that I know more I can see that it’s not. I’ll start a new thread when I have new information.

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘Redirecting to wrong site’ is closed to new replies.