• sinergyinaction

    (@sinergyinaction)


    Hi,
    I am developing a site on my localhost server and soon will migrate it to the production server.
    Right now all the links to the site pages start with

    https://localhost/page.html

    meaning the localhost part will have to be different once the site is up and running on its definitive home server.
    How can I make sure that all the ‘localhost’ prefixed links are changed to the right site/domain name once uploaded there (without having to do that manually that is)?
    Cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • luisherranz

    (@luisherranz)

    Can you edit the URLs right after you create the link? If so, instead of using https://localhost/page.html (absolute URL), you can use /page.html (relative URL). That way, you don’t have to modify anything in the future.

    Carlos Bravo

    (@cbravobernal)

    Hi there!

    These articles could help:

    Moving WordPress

    Changing The Site URL

    On the other hand, there is a plugin called Better Search Replace that could help you with that.

    Remember to create a backup always before doing this kind of action!

    Hope it helps!

    Thread Starter sinergyinaction

    (@sinergyinaction)

    Thank you both for your comments!
    @luisherranz right now each time a create a new page i get a permanent link which I cannot change (only the page name). How can I change this so that only a /page.html is the address?

    luisherranz

    (@luisherranz)

    You need to change the URL each time you create a link in the content.

    Something like this: https://d.pr/i/aAUFY7

    It should also work like that in the Navigation Menu block.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Site pages links: how to change them to their final domain name prefix?’ is closed to new replies.