15 Responses

  1. John Hawkins
    John Hawkins March 21, 2012 at 11:31 pm Reply

    Nice one. This would have come in handy a couple months ago. My biggest problem with running WP multi-site on my local dev box and using subdirectories has always been with creating links like /contact-us/ that send you back to the main site. This looks like it would have been a perfect solution had I not just left my windows machine.

    I’ll be passing this on the the WordPress Vegas meetup group. I’m sure they’ll dig it!

  2. Russell Aaron
    Russell Aaron March 22, 2012 at 11:02 pm Reply

    Hands Down, I just did this. Although I am using MAMP PRO!

    But I learn a lot from you austin

  3. Jonath Lee
    Jonath Lee May 8, 2012 at 5:57 pm Reply

    Thank you Austin, just what was I looking for. After testing all different config, finally found the solution for Win7. Thanks :)

  4. Jean
    Jean July 3, 2012 at 6:06 am Reply

    Can we make it work with Domain mapping as well? I understand this is a further step than subdomains, but would be really cool if I could set up domain mapping on XAMPP.

  5. Marcelo Rocha
    Marcelo Rocha August 16, 2012 at 3:34 pm Reply

    Cool tutorial. I have tried your procedure above but was getting error when was trying to access the sub-domains: when I tried to login to the first site created the page was redirected to the login page again and I can’t access the dashboard…
    After making some tests, reading more information in some forums finally I got it working fine in this way, step-by-step:
    1) After install Xampp I created the directory for the multisite, called mult.dev
    2) Then I have installed the WordPress with the Network in that directory
    3) In the httpd-vhosts.conf file I placed the following code:
    NameVirtualHost *:80

    DocumentRoot “J:/xampp/htdocs”
    ServerName localhost

    DocumentRoot “J:/xampp/htdocs/mult.dev”
    ServerName mult.dev
    ServerAlias *.mult.dev

    Options Indexes FollowSymLinks ExecCGI Includes
    Order allow,deny
    Allow from all

    4) For the “hosts” file I added the following code:
    127.0.0.1 mult.dev
    127.0.0.1 siteone.mult.dev #that would be the first site to be created
    5) Then I came back to the Network admin area and created the “siteone” there. After, everything goes perfect.
    Thanks too much for your help! :-)

  6. Ace Ghi
    Ace Ghi August 27, 2012 at 6:27 pm Reply

    Excellent! Thanks… :-)

  7. Tommy
    Tommy October 21, 2012 at 7:39 am Reply

    i have this

    DocumentRoot “C:/xampp/htdocs”
    ServerName localhost

    DocumentRoot “C:/xampp/htdocs/wordpress”
    ServerName wordpress.dev

    Options Indexes FollowSymLinks ExecCGI Includes
    Order allow,deny
    Allow from all

    but my adress still like this -> http://wordpress.dev/wordpress/

    1. Carmit
      Carmit February 5, 2013 at 6:04 am Reply

      Same here.

      ServerAdmin admin@localhost.com
      DocumentRoot “C:/xampp-portable/htdocs”
      ServerName mgd.local
      ServerAlias mgd.local

      Options Indexes FollowSymLinks Includes ExecCGI
      Order allow,deny
      Allow from all

      and my domain is still: http://mgd.local/mgd/

      How did you end up solving it?

  8. Robert
    Robert October 25, 2012 at 1:29 pm Reply

    I believe that this is just the ticket! Thanks for posting and with great precision.

    I am looking to add a multi-site WordPress network to my development environment and researching how to do the setup. This post is a good gateway.

    Silly question perhaps, but can this work on earlier versions of Windows (e.g., Vista) or is something peculiar to Windows 7? Hope to bypass Windows 7 with my next upgrade. :)

  9. JonoB
    JonoB November 19, 2012 at 2:41 am Reply

    Thanks, very helpful!

  10. Ben
    Ben November 28, 2012 at 3:20 am Reply

    Its also worth mentioning that you might need to modify the httpd.conf manually so that the below in enabled:
    Include conf/extra/httpd-vhosts.conf

  11. Dave
    Dave January 12, 2013 at 1:26 am Reply

    I tried this and Apache just hangs when I try to start it. I am new to Apache, and all I need to do is change my DocumentRoot to “C:/xampp/htdocs/wordpress/wp-content” instead of “C:/xampp/htdocs” that Apache uses. I can access “C:/xampp/htdocs” locally if I need to.

    How can I do this with out all the virtual crap?

  12. unde
    unde May 4, 2013 at 7:19 pm Reply

    thanks for the help really helped me to, this comment I’m taduciendo with a translator because I do not understand English, so it was really great but very helpful.

    unde_peru_2013

Leave a Reply

Comment Policy

By submitting a comment here, you grant this site a perpetual license to reproduce your words and name/Web site in attribution.

Please use your real name or a pseudonym (i.e., pen name, alias, nom de plume) when commenting. If you use your site name, company name, or something completely random, we'll likely change it to whatever we want.

%d bloggers like this: