Support » Fixing WordPress » WordPress installed on subdomain but showing on directory – setting URLs

  • Jon

    (@jonpaulwade)


    Due to a payment portal’s security requirements, my company has installed WordPress in a subdirectory. But, using URL rewrites, we are showing it on the main domain.

    Everything seems to be working OK, except for Yoast’s sitemap, which shows the blog subdomain.

    Now, in Settings>General there are two options:

    WordPress Address (URL)
    Site Address (URL)

    I am guessing that if I change one of these from blog.domain.co.uk to domain.co.uk/blog then Yoast will use that info to start creating a new sitemap with correct URLs.

    But, which one do I use to avoid breaking everything?

    Thanks,

    Jon.

Viewing 2 replies - 1 through 2 (of 2 total)
  • JNashHawkins

    (@jnashhawkins)

    You need to be very careful with changing those once you get things working when you need to do something a little tricky like this.

    I almost always use this kind of setup myself except when I’m running a site where the built-in installer likes to do things its way (like with the ‘Turnkey’ Installer).

    Here’s the document to fix most of that https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory but be careful with this info. Be ready to use FTP and your File Manager to fix things if it breaks something.

    Another good idea is to ask this over at the Yoast plugin support forum… https://wordpress.org/support/plugin/wordpress-seo/

    They may have better advice on this issue over there.

    tgedge1

    (@tgedge1)

    Can you reach the site pages without the sub-directory? If so – then you can output Yoasts sitemap, find/replace the links and submit wherever you need too.

    But – I would imagine Yoast folks have come up against this before – they probably have a fix.

    OR – you can have your server people make the sub-directory your home directory.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress installed on subdomain but showing on directory – setting URLs’ is closed to new replies.