• Hi there,

    I have just moved a WordPress site I am developing from a sub-domain on my server to a sub-folder on my clients server. The move was hectic and quite a bit got messed up along the way. I managed to sort most of the issues out by editing the config.php file.

    Unfortunately, there is just one issue I can’t fix. All the links on the site are working fine apart from ones to posts in a certain category /articles/. Whenever I try to view these posts, either through the permalink on the blog page or the direct URL, something strange happens.

    I am bound by a confidentially agreement so I can’t provide the link, but hopefully I can explain what is happening.

    The url starts of fine in the top bar:
    https://example.com/cms/articles/show-hyphenations-script/

    But instead of going to this page it starts adding the subfolder link (cms) behind /articles/.
    https://example.com/cms/articles/cms/cms/cms/cms/cms/cms/show-hyphenations-script/

    This just keeps going until it breaks after about 10 or so.

    I have this code in my config.php file. Could this be causing it?

    define('WP_SITEURL', 'https://example.com/cms');
    define('WP_HOME', 'https://example.com/cms');
    define('ADMIN_COOKIE_PATH', '/cms');

    Many thanks in advance for any help on this matter.

    Kind regards,
    James

  • The topic ‘Post page's URL adding directories and breaking’ is closed to new replies.