WordPress.org

Ready to get started?Download WordPress

Forums

Doing local dev with mutlisite and domain mapping (5 posts)

  1. Hi!

    I am going to be embarking on a major project soon, and want to be sure that I know how to do it properly. I will be developping locally (on a Win7 machine with Xampp; however, I am open to doing it on Ubuntu if it makes a difference). Here is where it gets complicated, at least according to my level of knowledge: it will be a multisite install with mapped domains AND subdomains. Here's what it'll be like (fake domain names obviously):

    Main/root domain: root.com (this will only be a static landing page; I'll also ideally use this as a roll my own link shortener domain which I will configure all my subsites to use, i.e. root.com/hYgTn)

    Mapped domains: domain1.com, domain2.com (subsites )

    subdomains: sub1.root.com, sub2.root.com (also subsites); I may also eventually have sub3.domain1.com etc, but that's not for sure yet.

    So, a somewhat complex setup, but I have it all mapped out, and I think that I can make it work fine with the wpeBooks plugins, Networks+ and Professional Domain Mapping. But now, here's the crux of my question:

    How do I develop this locally??? With mapped domains and all, I'm just not sure how I can get this to work locally. I want to be able to do a seamless deployment to a Linux Apache server (as seamless as possible, anyway), so that everything is set up and ready to go when I deploy (subsites are there, theme options are there, widgets are there, the works).

    Any advice, walkthroughs, tips, etc will be highly appreciated. Let me know if I need to clarify anything!

    thanks all!

  2. Stephane Daury (stephdau)
    Member
    Posted 2 years ago #

    The secret to getting that working locally is in your hosts file, so that you can "pretend" all those domains are actually running on your local machine (or any other alternative location, such as a test server).

    Check out this tutorial: http://wpmututorials.com/how-to/using-a-hosts-file/

  3. Yep, hosts file. :)

    http://t.co/ebQXTuD

  4. Curtiss Grymala
    Member
    Posted 2 years ago #

    The main caveat I would offer when developing on Windows and migrating to Linux would be that Windows files are not case-sensitive. In Windows, Index.php is treated as the same file as index.php and index.PHP. In Linux, however, those would be treated as 3 different files (so, if you try to include or link to index.php, but the file is actually named Index.php, Windows will find the file just fine, but Linux won't).

    As long as you keep that in mind when developing and linking to things, you should be okay.

  5. Thanks Curtiss! I was aware of that, but a reminder (for me and whoever is reading this) is never a bad thing! :)

    And thanks Andrea!!

Topic Closed

This topic has been closed to new replies.

About this Topic