How to switch from staging to production environment?

In this article, you'll learn how to switch from staging to production environment.




Translations in Weglot are linked to your project’s API key, not to your website, domain, or its status (staging or production).


1. I am using WordPress/JavaScript integration

I have a temporary URL that will change later

If you install Weglot on a staging website with a temporary URL (e.g. mymocksite123.hosting.com  ) and plan to later switch to your own domain:

  • No action is required. Weglot will continue working without affecting your translations or settings.
  • Recommendation: Update your website URL in Weglot Dashboard > Settings > General so that the Visual Editor is synchronized with your final domain:

I'm already managing 2 different websites

If you have both a staging and production website with different URLs but identical HTML and content, you can choose between two approaches:

Option A — Single Project

  • Configure Weglot on both staging and production environments using the same API key.
  • Both websites will share the same translations and settings.

Option B — Separate Projects

We recommend using separate projects if:

  • The HTML or content differs between your websites.
  • You want to manage different languages and/or settings on each website.
  • You plan to use subdomain-based or subdirectory-based integration (see sections 2 and 3).

2. I am using subdomain integration

I have a temporary URL that will change later

If you install Weglot on a staging website with a temporary URL (e.g. mymocksite123.hosting.com  ) and plan to later switch to your own domain, you will first need to update your website URL in Weglot Dashboard > Settings > General so that the Visual Editor is synchronized with your final domain.


Then, you will need to go to your Setup page to deactivate the subdomain integration.

After this, refresh the page, reactivate the subdomains, and go aheadwith the Weglot setup.


I'm already managing 2 different websites

If you have both a staging and production website and want to have subdomain integrations on each of these websites, you will need to have 2 separate projects, to create a dedicated Weglot project for each environment.


3. I am using subdirectory integration

I have a temporary URL that will change later

If you install Weglot on a staging website with a temporary URL (e.g. mymocksite123.hosting.com  ) and plan to later switch to your own domain, you will first need to update your website URL in Weglot Dashboard > Settings > General so that the Visual Editor is synchronized with your final domain.


Then, you will need to go to your DNS manager and revert the DNS change you've made to set the subdirectories up.

Now, you can go to your Setup page on Weglot to deactivate the subdirectory integration.

After this, refresh the page, reactivate the subdirectories, and go aheadwith the Weglot setup.


I'm already managing 2 different websites

If you have both a staging and production website and want to have subd integrations on each of these websites, you will need to have 2 separate projects, to create a dedicated Weglot project for each environment.



👉 To learn more about your current integration, see: How does Weglot manage SEO?

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us