• Resolved Rok Balboa

    (@rok-balboa)


    Working on testing server.

    I can put in full url of post, but after migration to real live domain, I will have to correct URL of Link to links.

    Is there a way to put in link something like:

    <?php echo site_url(); ?>/../ or..
    <?php echo home_url(); ?>/../

    .. this doesn’t work of course, tried,..;-), but maybe sth similiar. If it is possible.

    So i won’t have to think of this to change, after migration to live url/server.

    Thanks.

    https://www.ads-software.com/plugins/page-links-to/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The only thing you can do right now is by updating your linked url one-by-one/manually from post edit screen.

    Plugin Author Mark Jaquith

    (@markjaquith)

    You can use domain relative links by starting with a slash.

    So, if your site is https://example.com/ and you want to link to https://example.com/forums/ you can set the URL in Page Links To to /forums/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Link to another page, same site – preserve home url after migration’ is closed to new replies.