WP Multisite development with Mamp Pro and wildcard subdomains, not really working for me

I´m trying to set up a local development environment for me to work on a WordPress multisite that I´m building. I use Mamp Pro with default ports (Apache: 80, MySQL: 3306), and I also added a new host with the same domain name as the page will have when going live. So, now when I go to http://mylivedomain.com I get to my development page, and database entries seem to use the same url as it should when going live as well. Enabling multisite from here was no problem, but I´m struggling to get Wildcard subdomains to work.

In the advanced tab under Host in Mamp Pro, I added: “ServerAlias *.mydomain.com”, but that doesn’t work for me. I´m able to add a new site from the Admin dashboard, but when trying to visit it I just get a 404.

Can anyone steer me in the right direction? I´m the ‘design guy’ so all this techinical jizz is really over my head, but I try…:)

3 s
3

Appart of the default ports and correctly configuring WPMS…

In the Advanced Tab:
MAMP PRO

And manually add the subdomains in /etc/hosts1 file:

# BRASOFILO MULTISITE START 
127.0.0.1 test1.brasofilo.dev
127.0.0.1 test2.brasofilo.dev
127.0.0.1 cloned.brasofilo.dev
# BRASOFILO MULTISITE STOP

1 The folder etc is at the root of your HD and it’s hidden. You can open the file using TextMate or with your FTP client (enabling Show hidden files). It can also be done with the Terminal, but I don’t use it for that and you’ll have to search How To…

Leave a Comment