name.mydomain.com structure? how to?

5 replies
  • WEB DESIGN
  • |
Hi. Does anyone know how to setup different wordpress blogs like the topic says?

I was thinking of doing this instead of registering new domains for all the different topics I'm going to cover. It would save me both time and money.

I need to be able to have a different wordpress theme and different content for each "name".. like, lets say I have a site about dogs and it's called mydogs.com. I'd like my site structure to be like this:

train.mydogs.com, breed.mydogs.com, show.mydogs.com etc.

With a different WP blog and theme for each. Doable? Or is it different depending on the webhost?

Thank you.
#namemydomaincom #structure
  • Profile picture of the author DynamicRevelation
    Not the way I'd approach it (that way sounds too much like hard work), but...

    That is totally doable- and you can also have them all feed from the same database too!

    First thing you'll have to do is make folders for each of the prospective sub-domains, and then configure those folders through your web host as sub-domains.

    Then, install wordpress in each of the folders, changing the table prefix on your wp-config.php to something like "wptrain_" and "wpbreed_" (as opposed to "wp_").
    It'll literally look like this:

    $table_prefix = 'wp_';

    You want it to look like:

    $table_prefix = 'wptrain_';

    If using your server's installation utility, simply choose the database you want, and use the prefix- just like above. (Automatic installations simply display the config.php through a "user-friendly" console- not really any different)

    This will make all entries from the "train.mydogs.com" blog have the prefix "wptrain_"... so none of them will interfere with data from the other blogs.

    Make sure each installation's root directory reflects the folder (your sub-domain)...

    Each can then be configured with their own theme, data, content, everything- as if they were on their own domain.

    Or... if you want to try things my way...

    You can use the Headspace2 plugin, which would allow you to set the theme and CSS for each one of your pages (if you so choose)- all on the same blog. Might save you the time of logging in to separate blogs later.
    {{ DiscussionBoard.errors[1271152].message }}
    • Profile picture of the author DynamicRevelation
      Oh yeah- if you have one of those hosting accounts, where you can host like a zillion domains... and like only 5 SQL databases... This is a great way to serve several domains in your hosting account with a single database!
      {{ DiscussionBoard.errors[1271253].message }}
  • Profile picture of the author KristofferW
    Thank you very much DR. Much appreciated.
    {{ DiscussionBoard.errors[1271270].message }}
  • {{ DiscussionBoard.errors[1271283].message }}
    • Profile picture of the author DynamicRevelation
      That's actually a great idea, too.

      Wordpress MU (pretty much a carbon-copy of wordpress.com) can be used as a service, where you can allow users to post their blogs... and for a small fee, they can have certain capabilities... (use your own theme for $5, etc.)

      No doubt- the admin can post their own articles, advertise, and offer a theme-based service as well. That's what business is all about.
      {{ DiscussionBoard.errors[1271348].message }}

Trending Topics