• Hello,

    I installed WP in a subdirectory (mysite.com/wp) through my provider (no manual installation) and I left the previous static website online.

    Now the wordpress site is ready and I want people who type https://www.mysite.com to go directly to the new wordpress website and to leave the old one as an archive.

    I tried to follow these instructions but it did not work out for me.

    The strange thing (to my non-expert eyes) is that the sudirectory mysite.com/wp is completely empty (and the root as well). All the wp content is in another sub-directory called htdocs/wp.

    So I tried to set in the “general settings” of my wp site the folder htdoc/wp as the “wordpress folder” and I ended up in not being able anymore to access my dashboard.
    I was in panic.

    Following the instructions here (in particular the relocate one) I’m now able to access again to my dashboard but not through the link mysite/wp/wp-admin anymore, but only pointing the browser to mysite/wp/wp-login.php.
    Don’t know why.

    So, finally, my question: how can I make my wordpress website being accessible just typing mysite.com?

    Thanks a lot in advance.

Viewing 1 replies (of 1 total)
  • Phil

    (@owendevelopment)

    1. you move all the files from the /wp directory to root (NB. htdocs IS the root).

    2. Once moved all wp directories / files to root, go into database via PHPMyAdmin,

    3. Navigate to the wp_options table and you’ll need to change two sections: site url and wordpress url. Make sure this is now https://www.mysite.com (with no /wp).

    That should be it.

Viewing 1 replies (of 1 total)
  • The topic ‘From a WP subdirectory to the root’ is closed to new replies.