Domain won't go to Subdomain

So I installed Domain mapping because I am implementing Multi-site (which I had to implement sub-domain style). I directed http://www.podcastmadness.com to the host IP and set it up to redirect to podmad.geekazine.com.

Podcastmadness ends up going to the root directory (www.geekazine.com).

Need help and if I didn't set up correctly. I am on a Godaddy server.

  • Paul Barthmaier
    • Code Wrangler

    Hi Jeffrey,

    Our Domain Mapping plugin is designed to start with the naked domain as the root, or base. Here's what I recommend

    1. changing the www to a CNAME of geekazine.com,
    2. updating wp-config with your naked domain as base,
    3. setting up your wildcard subdomain at your host (this just means creating a subdomain called * on cPanel
    4. add define( 'SUNRISE', 'on' ) to wp-config
    5. move sunrise.php from plugin folder to wp-content
    6. it's best if you have a dedicated IP

    Hope this helps! Let us know how it goes.

    Cheers,
    Paul

    Need multiple downloads for MarketPress products? No worries!: http://goo.gl/vrdWx

  • Paul Barthmaier
    • Code Wrangler

    Ok, we're getting closer, but what I hear is that geekazine.com is the root for multisite and what you'd like to do is have the subdomain padmad.geekazine.com be the site that PodcastMadness.com is mapped onto, correct? If so, I'll need you to look at #2 above. Your wp-config should have these lines:

    $base = '/';
    define('DOMAIN_CURRENT_SITE', 'geekazine.com');

    If you already have that, then you'll need to change your SiteURL and Home. You can see what they are if you append this to your domain:

    /wp-admin/network/site-settings.php?id=1

    But I don't think you can change anything there. You will need to do this in the database in the wp-options table.

    Then for #3, go to your cPanel, click on Subdomains, create subdomain, but instead of putting in a name for your new subdomain, you are going to put an asterisk (*). What the result will be is a wildcard subdomain and it will look like:

    *.geekazine.com

    For #1, in your DNS settings, you should have a CNAME for http://www.geekazine.com like:

    www CNAME geekazine.com

    which says that the URL http://www.geekazine.com is the same thing as its canonical name geekazine.com, ie without the www.

    Sound ok?

    Cheers,
    Paul

    Don't like native styling of Comments Plus? No prob: http://marker.to/YQ7EuI

  • Paul Barthmaier
    • Code Wrangler

    Here's something from GoDaddy's site:

    http://support.godaddy.com/groups/web-hosting/forum/topic/wildcard-subdomain/

    If you don't have cPanel, this might not work. That is, there are certain things I assumed as a baseline. I didn't ask, for example, about dedicated IP, which seems like an issue if you don't have cPanel.

    Hope this helps! Let us know how it goes.

    Cheers,
    Paul

    Don't like native styling of Comments Plus? No prob: http://marker.to/YQ7EuI

  • jeffrey_powers
    • Flash Drive

    I am getting very confused and putting too much stuff in my A and CName records. So let's take a step back here to see if I understand this:

    For geekazine.com - In the DNS I made an "A" record to create the subdomain "podmad" (podmad.geekazine.com).

    In PodcastMadness.com - In the DNS I have to make a "CName" record to point to podmad.geekazine.com. However I don't put in podmad.geekazine.com - Do I type in the wildcard ( *.geekazine.com) or no wildcard (geekazine.com)?

  • Paul Barthmaier
    • Code Wrangler

    Hey there,

    For geekazine.com - In the DNS I made an "A" record to create the subdomain "podmad" (podmad.geekazine.com).

    In PodcastMadness.com - In the DNS I have to make a "CName" record to point to podmad.geekazine.com

    Don't need either of these. Domain Mapping plugin will do a lot of this.

    https://premium.wpmudev.org/project/domain-mapping/#usage

    Let's see if this makes sense stepping back.

    Cheers,
    Paul

    JUST DO IT. ~Famous Nike Ad Slogan.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.