• Resolved verolavero

    (@verolavero)


    Mayby someone has a solution for this:

    I installed WordPress in a subdirectory /wp/.
    Then I deleted the ending /wp/ form the website address (in settings) and following method II of this instruction: Giving WordPress Its Own Directory
    It all works fine. Website runs without /wp/, only to enter admin-area I need to use /wp/wp-admin/ after the domain.

    Now I found out, that a large number of errors 404 is created. Instead of eliminating the subdirectory from url and redirecting to the actual content, there is a second version of everything with a /wp/ after the domain.

    I am not sure, if this is a big issue – SEO wise – but has anyone dealed with this and is willing to share a solution?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    You mean a large number of 404s in Google search console? Googlebot shouldn’t finding any URLs with /wp/. I think they are URLs previously indexed before you changed the settings. Would that be a correct assumption? If so, Googlebot needs to be told those URLs have permanently changed by redirecting with a 301 status. You need a rewriterule set in .htaccess that detects non-admin /wp/ requests and redirects to the appropriate URL.

    Thread Starter verolavero

    (@verolavero)

    @bcworkz you are absolutely right. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Eliminate subdirectory from URL’ is closed to new replies.