• 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 https://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?

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

Viewing 1 replies (of 1 total)
  • The topic ‘How to change WP directory?’ is closed to new replies.