Support » Plugin: Blog Copier » / missing from new blog address

  • 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    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

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘/ missing from new blog address’ is closed to new replies.