Forums

Changing URL from mydomain.com/blog to mydomain.com (6 posts)

  1. dansolomon
    Member
    Posted 1 month ago #

    I know there are a few posts with this same basic idea, but I've yet to find one that can resolve my issue. I apologize in advance if this is inappropriate.

    I built my Wordpress blog at www.dansolomon.com/blog, and now that it's the way I wanted it, I want to go live with it at www.dansolomon.com, replacing the previous (current) version of the site.

    I've followed the FAQ directions at http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Within_Your_Site but I've not gotten any results from it. Upon completing step 6, and updating that information, I get a 500 server error, instead of the option to log out. Following the rest of the instructions results in no change, and I'm left with a server error and no site. Attempting to log in at the admin page results in the same 500 server error. I only get administrative access at all by moving the files back to the location at dansolomon.com/blog, and upon logging in, changing the Wordpress address and blog address in the General Options page back to the previous address.

    So I've got it stabilized- the site is there- but I don't know how to bring it to the dansolomon.com main page, instead of dansolomon.com/blog. I believe I've followed the instructions in the FAQ pretty exactly, so I'm not sure what else to do.

  2. mojorob
    Member
    Posted 1 month ago #

    So, you've changed the option in the admin pages to have the blog at the new location. What files did you move exactly?

    If you've kept the Wordpress core files address in the same location (i.e. mydomain.com/blog), and have only moved where you want the blog address to be (i.e. mydomain.com) You only need to move the index.php (and possibly .htaccess file).

  3. rudolf45
    Member
    Posted 1 month ago #

    You only need to move the index.php (and possibly .htaccess file).

    Actually, you have to copy them. Not move!

  4. dansolomon
    Member
    Posted 1 month ago #

    Thanks for the reply!

    When I had moved the files (before moving them back), I had moved all of them. I just tried moving index.php and .htaccess. My index.php file reads as follows:

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./blog/wp-blog-header.php');
    ?>

    I've just edited the post because I did some poking around and I'm closer, but I still have a problem- the blog now loads at www.dansolomon.com, but as you'll see if you go to the site, it's without theme or form- there are no columns, and everything is just loaded top-to-bottom. I'm sure it's something simple to fix, but I don't know the coding well enough to figure it out.

    --d

  5. rudolf45
    Member
    Posted 1 month ago #

    (you can try next time to use the formatting buttons above the posting area instead of your unsuccessful hand code)

    Back to the issue:
    As I said above, you need to copy the files - which in my books means you end up with a copy in the original location and another one in the new location, right?

    Now, in the /blog directory you should have this index:

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    while in the root directory (example.com/) it should look like this:

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./blog/wp-blog-header.php');
    ?>
  6. dansolomon
    Member
    Posted 1 month ago #

    And a little bit of searching fixes everything for me. Thanks a lot for your help and patience, I appreciate it- all is up and running now!

    (for the record, if anyone finds this later and has the same problem, double-check that the URLs in your "options" page point to where the actual files are- in my case, the /blog address)

    --d

Reply

You must log in to post.

About this Topic