WordPress.org

Ready to get started?Download WordPress

Forums

How to change WP directory? (2 posts)

  1. arikontiainen
    Member
    Posted 6 years ago #

    For some peculiar reason I can't recall any more, I've installed WordPress into a "wp" subdirectory in the past. So the path referring to blog is http://mydomain.com/wp/

    Now I'd like to change it so that my domain name address refers directly to WP. In other words, get rid of the "wp" subdirectory.

    What is the most practical way of doing it? What are the files/db tables/etc to touch? Any 1-2-3 instructions available in the net?

  2. MichaelH
    Member
    Posted 6 years ago #

    Moving WordPress has info and Giving WordPress its own directory describe a technique.

    Somewhat simplified:
    1. Backup your files and database
    2. Change your Options->General Blog (URL) to not have the /wp at the end
    3. Put an index.php in your webroot that has:

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

    4. Update Permalinks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.