• I have just moved my root WordPress install into it own subdirectory. All seems to work of Yeah! I was wondering if the login needs to have the subdirectory in its path to access or not. At the moment I need to include the subdirectory otherwise I get a blank screen at login without it

    cheers
    mike

Viewing 3 replies - 1 through 3 (of 3 total)
  • This Codex article is quite helpful:

    https://codex.ww.wp.xz.cn/Giving_WordPress_Its_Own_Directory#Moving_a_Root_install_to_its_own_directory

    (Read it like 10 times, then go thru it one step at a time…not being oblique, but it is quite accurate and works).

    Can you please let us know if when you do login if the site and home url are the same?

    Thread Starter milnerstudios

    (@milnerstudios)

    No they are different. site is domain name to root, wordpress point to subdirectory. I just wondering if I should be logging into the admin by specifying the subdirectory in the path or whether I have done something wrong and its not working right. Its not completely clear if that is a normal procedure
    thanks

    If all is setup correctly then you will be redirected to the login.

    site.com/wp-login.php

    or

    site.com/wp-admin

    redirects to

    site.com/subdirectory/wp-login.php

    or, respectively

    site.com/subdirectory/wp-login.php?redirect_to=http%3A%2F%2Fsite.com%2Fsubdirectory%2Fwp-admin%2F&reauth=1

    And of course you could also use

    site.com/subdirectory/wp-login.php

    or

    site.com/subdirectory/wp-admin

    So the answer is, it doesn’t matter, does it?

    I would use the root login url as you can then someday change the sub-folder name and not worry about the url, it will still work.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Moving wordpress from root to subdirectory’ is closed to new replies.