Support » Localhost Installs » Live Site Still has Staging URL after Deployment

  • I developed and updated my website in the Staging environment (example: and then deployed it to my main site.

    There are two buttons on the site that have URL links. For example, a LEARN MORE button on the home page that sends the reader to the ABOUT page.

    In staging, that button’s link was defined as

    After I deployed from staging to the main website, I expected this button’s link would only be, and that the “staging/1234” would be automatically removed . . . but it was not. Now, this button on the main website does not work because it still points to Staging.

    Is there an easy fix for this? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • There is an article here about moving with changing domains:

    It also recommends to empty the permalinks after a move and to use a plugin like “Better Search and Replace” if necessary. With the latter you can e.g. change the old domain to the new domain.

    If you use a PageBuilder like Elementor, they may also provide a tool to change the domain in their templates.

    Hi, It seems that after deploying your website from the staging environment to the main site, the links on your buttons still contain the staging URL, which is causing them to direct users to the staging environment instead of the main website.

    To resolve this issue, you will need to update the links on your buttons to reflect the correct URLs on the main website. Here’s what you can do:

    1. Access your website’s content management system or website builder.
    2. Locate the page where the button with the incorrect link is placed (in this case, the “LEARN MORE” button on the home page).
    3. Edit the button’s link and remove the “staging/1234/” portion from the URL.
      Instead of “”, it should be changed to “”.
    4. Save the changes and publish/update the page.
    5. Test the button to ensure it now directs users to the correct page on the main website.

    Repeat these steps for any other buttons or links that still contain the staging URL. By updating the links to reflect the correct URLs on the main website, the buttons should now direct users to the desired pages without redirecting them to the staging environment.

    If you encounter any difficulties or have specific questions related to your website’s content management system or website builder, it may be helpful to consult the platform’s documentation or support resources for further assistance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.