WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Running Blog off Root Directory (9 posts)

  1. ajay182
    Member
    Posted 5 years ago #

    Hi,

    I've read the article on moving my blog to the root directory, and have changed the URL in the 'Blog Address' field. However, the next step mentions moving the 'core files'. I'm completely new to this, so can someone clear up:

    -What are the core files?
    -Where do I move them to?!

    Any help is greatly appreciated.

    Thanks!

  2. ajay182
    Member
    Posted 5 years ago #

    Can anyone help please?

  3. MichaelH
    Member
    Posted 5 years ago #

    You could review Moving WordPress.

    Or, to make WordPress available at http://mydomain.com just change in Settings->General, the Blog address (URL) to http://mydomain.com and put this index.php file in your web-root folder (it is the same folder that contains the blog folder)

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

    Then update your permalinks in Settings->Permalinks.

    Of course if WordPress is not in blog, just replace the references to ./blog to whatever folder WordPress is in.

  4. ajay182
    Member
    Posted 5 years ago #

    Hi,

    I had previously reviewed the article you posted, and just got confused about what it meant by 'core files', and where to put them. I assume the index.php file you mention above needs to be created? Is that all I need to move?

  5. MichaelH
    Member
    Posted 5 years ago #

    I assume the index.php file you mention above needs to be created?

    Yes.

    Is that all I need to move?

    With my suggestion nothing gets moved.

    Please note core files would be all those files included in the distribution available via the Download tab at the top of this page.

  6. ajay182
    Member
    Posted 5 years ago #

    Thanks Michael, I'll give this a shot.

  7. ajay182
    Member
    Posted 5 years ago #

    Hi. I made this file, and put it in the same folder as the 'wp-blog-header' etc, and there was already an index.php in there. Replacing this didn't work, and gave me an error message.

  8. figaro
    Member
    Posted 5 years ago #

    Maybe the second video in the following post will help.

    http://educhalk.org/blog/?p=82

  9. ajay182
    Member
    Posted 5 years ago #

    Superb video and solved my problem. Many thanks figaro.

Topic Closed

This topic has been closed to new replies.

About this Topic