Forums

Help moving blog....don't want to delete it!!! (3 posts)

  1. thesackshack
    Member
    Posted 3 years ago #

    My blog has been located on thesackshack.com/blog since I installed it.

    Tonight i purchased a new domain (ncaafootballtalk.com) and transferred it to my server. I want to make the blog the new URL I just purchased and leave everything else on my old URL.

    My server created a folder in my 'public_html' section named after the new URL (ncaafootballtalk).

    What do I have to do to make the blog show up as ncaafootballtalk.com (the new URL)???

  2. vachi
    Member
    Posted 3 years ago #

    you want to leave teh files under the old folder but have the blog show the new domain name, why don't you just move the blog to the new domain?
    http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Within_Your_Site

  3. NC@WP
    Member
    Posted 3 years ago #

    There is more than one way to do this. If you have full control over your server (meaning, you can edit your httpd.conf), you can do a quick two-step:

    1. Set the DocumentRoot directive for ncaafootballtalk.com to public_html/blog or public_html/thesackshack/blog, whichever is applicable.
    2. Log into the blog at thesackshack.com/blog and change both WordPress address and Blog address to http://ncaafootballtalk.com/

    Failing that, you could do a quick three-step:

    1. Create a new file called index.php in your public_html/ncaafootballtalk
    2. In that file, write the following:
      <?php
      
      define('WP_USE_THEMES', true);
      require '../blog/wp-blog-header.php';
      
      ?>

      (The second line may actually have to be require '../thesackshack/blog/wp-blog-header.php';, depending on how your directory structure is set up)

    3. Log into the blog at thesackshack.com/blog and change both WordPress address and Blog address to http://ncaafootballtalk.com/

    Failing that, you can install a new copy of WordPress on ncaafootballtalk.com and then either configure it work off the existing database or export the old blog data into a WXR file and import it into the new blog.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.