Sub-domain site (19 posts)

  1. leg0
    Posted 4 years ago #

    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

  2. You want to copy existing, separate, sites into your multisite? Is that correct?

  3. leg0
    Posted 4 years ago #

    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 :D

  4. leg0
    Posted 4 years ago #

    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?

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

  6. leg0
    Posted 4 years ago #

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

  7. Go to person.mainsite.com/wp-admin :)

  8. leg0
    Posted 4 years ago #

    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

  9. 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.

  10. leg0
    Posted 4 years ago #

    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 :)

  11. leg0
    Posted 4 years ago #

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

  12. 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?

  13. leg0
    Posted 4 years ago #

    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.

  14. 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.

  15. leg0
    Posted 4 years ago #

    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
  16. Yes.

  17. leg0
    Posted 4 years ago #

    still server is not found :(
    what else can be problem?

  18. skpeh
    Posted 4 years ago #

    hi, i created a subdomain *.freelycashmachie.com.

    i couldnot find it in my sites.

    if i choose to add site but it will be added into my other sites
    http://www.freelycashmachine.com/blog but not the subdomain

    please help

  19. Tim Moore
    Posted 4 years ago #

    @skpeh: please start a new thread. This is now two threads you have hijacked for the same question. Forum etiquette is to start your own thread.

Topic Closed

This topic has been closed to new replies.

About this Topic