Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7587395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:39:49+00:00 2026-05-30T19:39:49+00:00

I am trying to get WordPress 3.3.1 multisite (sub-domains) working in my localhost. However,

  • 0

I am trying to get WordPress 3.3.1 multisite (sub-domains) working in my localhost. However, it appears that I need to have wildcard subdomains configured for my WordPress vhost. The idea is to have any_subdomain.my_wordpress.local to go to my_wordpress.local.

How do I do this in Mac OS 10.7.3 with Apache 2.2.22?

This is the virtual host set up in my http-vhosts.conf file for that local site:

<VirtualHost *:80>
    DocumentRoot "/Users/some_user/Sites/wordpress_mu"
    ServerName wordpress_mu
    ServerAlias *.wordpress_mu
    ServerAdmin some@email.com

# Logging
    ErrorLog "logs/wordpress_mu.error_log.log"
    CustomLog "logs/wordpress_mu.access_log.log" combined

<Directory "/Users/some_user/Sites/wordpress_mu">
    RewriteEngine On

    # To allow permalink as specified by wordpress admin interface
    RewriteBase /
    RewriteRule ^index\.php$ - [L] 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule . /index.php [L] 

            Options FollowSymLinks MultiViews Includes ExecCGI
            AllowOverride All 
            Order allow,deny
            Allow from all 
    </Directory>

    # Set valid directory pages
    DirectoryIndex index.html index.htm index.shtml index.php

I have also added wordpress_mu into /etc/hosts.

127.0.0.1  wordpress_mu

Thank you in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T19:39:50+00:00Added an answer on May 30, 2026 at 7:39 pm

    /etc/hosts doesnt support wildcards so you need to add each subdomain to your /etc/hosts otherwise it wont work.

    Alternatively, you can run a DNS server somewhere on your local network whether thats your local machine, another box, or your router. dnsmasq is pretty easy to setup. If you have a wireless router that supports ddwrt then you can even run it on there. That way you can just use a wildcard.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to get Galleria script working in WordPress? I am have enqueued the script
I've got a WordPress powered blog that I'm trying to get setup on our
Trying to get comfortable with jQuery and I have encountered some sample code that
I'm trying to setup the multisite feature for wordpress 3.0 on my Mac's localhost
I'm using a wordpress theme that I built and I'm trying to get a
So I have been working with Wordpress 3.x and trying to build a custom
I'm trying to get the Thesis theme working in Wordpress, and it's almost perfect.
I have been trying to get the WordPress menu inline and below my side
Our company is trying to transition to WordPress Multisite but we have several issues
I'm trying to get some rollovers working using jQuery. The trouble is that the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.