You want to copy existing, separate, sites into your multisite? Is that correct?
Thread Starter
leg0
(@leg0)
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 😀
Thread Starter
leg0
(@leg0)
in my main site page template there is a code:
<div>
<?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 »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php //edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
<?php // comments_template(); ?>
</div>
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?
You can if you make that page, then set it as the static front page on that site (Settings -> Reading.)
Thread Starter
leg0
(@leg0)
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 🙂
Thread Starter
leg0
(@leg0)
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
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.
Thread Starter
leg0
(@leg0)
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?
http://img594.imageshack.us/img594/88/person.jpg
thanks for helping me 🙂
Thread Starter
leg0
(@leg0)
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?
Thread Starter
leg0
(@leg0)
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.
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.
Thread Starter
leg0
(@leg0)
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
</VirtualHost>