WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU Domain Mapping
Mapped domain works, subdomain does not (10 posts)

  1. martins.l
    Member
    Posted 6 months ago #

    Hi,
    Really cannot figure out this one.

    I have main site - mainsite.com
    Subdomain - site1/mainsite.com mapped to site1.com
    Site1.com works, but site1/mainsite.com does not, it returns directory listing of root folder.

    Has somebody has some ideas about that?
    Thanks!

    http://wordpress.org/plugins/wordpress-mu-domain-mapping/

  2. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 6 months ago #

    Your server is not set up correctly. Contact your hosting support.

  3. davebon
    Member
    Posted 6 months ago #

    Hi,
    I believe I may have the same issue, and if it is a server issue, what do I request be done at the hosting support?

    These are the domain and subdomains of the multisite app:
    http://suburbanguides.com
    http://livingston.suburbanguides.com AKA http://livingstonguides.com
    http://millburn.suburbanguides.com AKA http://millburnguides.com

    As an example of the issue:
    • I can use either http://millburn.suburbanguides.com AKA http://millburnguides.com to get to the site either way correctly.
    • If I use http://millburnguides.com/news/ I get to the news page as expected.
    • If I use http://millburn.suburbanguides.com/news/ I am sent to the main domain http://suburbanguides.com.

    Is there a way I can have both working? If this is an issue with the server, what should I request be done. I am using Hostgator.com.

    Thanks!

  4. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 6 months ago #

    I believe I may have the same issue

    No, you don't. The original poster was getting a blank page. Most likely, mod_rewrite isn't enabled in your web account on the mapped domain.

  5. davebon
    Member
    Posted 6 months ago #

    I appreciate your help on this, and I am not sure I understand.

    I went to Hostgator.com and explained the issue. They said that (from their end) the mod_rewrite capability was on. However, they were not able to help me with the mapping issue, explained prior.

    Can you provide me with further direction?

    My .htaccess file looks like the following:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    
    # END WordPress

    Thanks again.

  6. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 6 months ago #

    @davebon - Sorry, I've never had a Hostgator account.

  7. George Lerner
    Member
    Posted 6 months ago #

    http://suburbanguides.com -- goes to a BlueHost.com page which says "There is no website configured at this address."

    http://livingston.suburbanguides.com/ -- "302 Moved Temporarily" to http://livingstonguides.com/

    You need (in this example) to have WordPress installed, in multi-site mode, in the folder for suburbanguides.com. It isn't. (And that folder Must be the root of your hosting account, or must be the root of an add-on domain.)

    You need (in this example) to have livingstonguides.com point to the same folder.

    Then you have WordPress map livingstonguides.com to livingston.suburbanguides.com/

    You also need to have your hosting company remove the redirection for livingstonguides.com. (They probably have it set up now as an add-on domain, which is not what you want.) Have livingstonguides.com point to the same place as suburbanguides.com.

    You need to have your hosting company set up "WildCard DNS" for suburbanguides.com.

    Tip: Don't talk to your hosting company about "WordPress Multi-Site", since that can trigger their "we don't support third-party scripts" excuse. Just ask them to remove the add-on domain, and point the domain names to the right place, and set up wildcard DNS.

    There are some advantages if you have one domain name for WordPress (to do all the administration), and map suburbanguides.com and livingstonguides.com. Because the prices were lower, I used a .info for WordPress:
    -- your-other-domain.info in /public_html for WordPress,
    -- suburbanguides.com points to the same folder,
    -- livingstonguides.com points to the same folder

    I give much more detail in http://lcblog.lernerconsult.com/2012-wordpress-3-multi-site-installation-existing-web-sites/

  8. davebon
    Member
    Posted 6 months ago #

    Hi George,

    Thanks for your response. Most now is working, thankfully. But what you saw was while the website was in transition from one ISP to another. If you go there now - it will look much better.

    I do still have the original issue and I will study the link you sent me - again thanks very much.

    Dave

  9. davebon
    Member
    Posted 6 months ago #

    OK, I am still stuck.

    These are the domain and subdomains of the multisite app:
    http://suburbanguides.com
    http://livingston.suburbanguides.com with mapped domain http://livingstonguides.com
    http://millburn.suburbanguides.com with mapped domain http://millburnguides.com
    http://tutorial.suburbanguides.com with no mapped site.

    The issue is that if I use the mapped domain – the links works as expected:

    Example:
    • IN THE MOST BASIC FORM when you go to http://tutorial.suburbanguides.com scroll down and click on “HELLO WORLD” the linked post:
    http://tutorial.suburbanguides.com/2014/01/20/hello-world/ DOES NOT WORK.

    Other Examples
    http://livingstonguides.com/news/ WORKS yet http://livingston.suburbanguides.com/news/ DOES NOT WORK.
    http://millburnguides.com/guides/ WORKS yet http://millburn.suburbanguides.com/guides/ DOES NOT WORK.

    ALL non-working subdomain links simply go to the home page of the main site at http://suburbanguides.com/

    Any suggestions for what I have done wrong here?

  10. George Lerner
    Member
    Posted 6 months ago #

    @davebon --

    What I see accessing the links you show has changed since when you wrote that.

    I can guide you through getting it working.

    We'll have to screen share (Google Chat? Skype?) so I can see the setup; I certainly can't troubleshoot as it is changing.

    Best to reach me via http://www.glerner.com/shared/contact.php so we don't have emails going to spam folders.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.