Support » Multisite » Sub-domain site

Sub-domain site

  • Hi, i’m a newbie using WP, your help will be very useful, thanks!
    I have main site and few sub-blogs that are hardcoded, want to make to convert them from static to dynamic.
    Is there any plugin to copy index.php from main site to sub-site directory when the sub-site is created?
    and how can i add page (created in UI) to this index.php? without editing any html, using only UI.
    actually each sub-site is a short info about few of my co-workers, so i want to get rid of hardcode and make it easy to edit by site-user.
    appreciate your help

Viewing 15 replies - 1 through 15 (of 18 total)
  • You want to copy existing, separate, sites into your multisite? Is that correct?

    i have mainsite.com
    and person.mainsite.com
    now folder “person” contains only hardcoded index.php.
    i want to have opportunity to add a post i’ve created in wp-admin to this index.php.
    sry if expressed it in a wrong a way, hope now it’s understandable 😀

    in my main site page template there is a code:

    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    		<h2><?php the_title(); ?></h2>
    			<div class="entry">
    				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
    				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    		<?php endwhile; endif; ?>
    	<?php //edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    	<?php // comments_template(); ?>

    how it can be used for the sub-site? i see that it may depend on page template but i can’t apply any page.php template for index.php, do I?

    Andrea Rennick


    Customer Care at Copyblogger Media and Studiopress

    You can if you make that page, then set it as the static front page on that site (Settings -> Reading.)

    how can i make it for my person.mainsite.com? cause in (Settings -> Reading.) it’s only for mainsite.com, as i see

    Go to person.mainsite.com/wp-admin 🙂

    but does it mean that i need to copy all the wordpress files to “person” folder? cause now it contains only index.php and obviously i can’t reach wp-admin

    Andrea Rennick


    Customer Care at Copyblogger Media and Studiopress

    no, you don;t need to copy anything – that kind defeats the whole point of one install, doesn’t it?

    If person.mainsite.com isn’t working right, you have other issues to fix. there should not be a subdomain folder there. the subdomains in multisite are *virtual*.

    Remove the index.php, amke it a wordpress theme. Put it in the theme folder. Make the person blog in the wp admin area. pick the them you just made.

    yeah, it seems to be logical.
    ok, i understood about “virtuality” of subdomains.
    created “person” theme in themes folder, created site in Sites, applied person theme, but it doesn’t work like subdomain. it says server can’t be found
    am i creating it in a wright way?
    thanks for helping me 🙂

    sry, wrong one print screen,
    this one is ok http://img718.imageshack.us/img718/18/person222.jpg

    Andrea Rennick


    Customer Care at Copyblogger Media and Studiopress

    Did you set up the wildcard subdomains like ti said in the codex instructions when you enabled the network? 🙂

    Did you ask your host if they support it?

    maybe it will sound little bit stupid, but i don’t know where are DNS records located. And i can’t find it in google.

    i’m doing it on local (pc) web server, by the way.

    Andrea Rennick


    Customer Care at Copyblogger Media and Studiopress

    Well that’s handy info, because localhost doesn’t have dns records. 😉

    you cannot use wildcard subdomains on localhost.

    you *can* set up a serveralias for manually created subdomains and point them to the same docroot as your wordpress install.

    oh, sounds like fun.

    should i just change

    ServerAlias *.mc.com to
    ServerAlias person.mc.com

    like this for each blog?

    <VirtualHost *:80>
        ServerAdmin admin@mc.com
        DocumentRoot "Z:/home/mc.com/www/"
        ServerName mc.com
        ServerAlias person.mc.com
        ErrorLog "logs/mc-error.log"
        CustomLog "logs/mc-access.log" common
    Andrea Rennick


    Customer Care at Copyblogger Media and Studiopress


Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Sub-domain site’ is closed to new replies.
Skip to toolbar