WordPress.org

Ready to get started?Download WordPress

Forums

Blog Copier
/ missing from new blog address (4 posts)

  1. kstavert
    Member
    Posted 9 months ago #

    When setting up a new site, we have to
    type the / in front of the new domain
    name - even though it's there in the
    original "http://yourdomain.com/"

    the next one installed, we typed /subdomain/

    and when it was refreshed, the /
    was missing from the subdomain...

    had to go into dashboard and add it
    again.

    how do we fix this, please?

    thanks Karen

    http://wordpress.org/plugins/blog-copier/

  2. Paul Kaiser
    Member
    Posted 9 months ago #

    I'm having this problem, too.
    Also, if you have it copy files, they will not be copied correctly, and their URL's will end up being incorrect.
    So you have time to fix this?
    Thanks so much for making this plugin -- it's a good time saver.
    Take care,
    Paul

  3. Paul Kaiser
    Member
    Posted 9 months ago #

    Hey here is the solution that worked for me:
    1. FILE: blog-copier.php
    2. Find the line:
    $path = trailingslashit($base.$domain);
    * This is in the conditional statement that checks whether it is a subdomain install or not.
    3. Change the line to:
    $path = trailingslashit( $base . "/" . $domain );

    Try it out!
    Cheers,
    Paul

  4. Paul Kaiser
    Member
    Posted 9 months ago #

    Hmm, just note... in my case "$base" is empty. I'm not sure in what cases it isn't empty. But if it is ever not empty, like maybe:
    http://mysite.com/
    ... then my solution will make trouble.
    Maybe it should be:
    $base = trailingslashit( $base );
    $path = trailingslashit( $base . $domain );

    ??
    Paul

Reply

You must log in to post.

About this Plugin

About this Topic