> ## Documentation Index
> Fetch the complete documentation index at: https://authplugin.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Changing Your Domain

> What happens to visitors, sign-in and emails when you move your Framer site to a custom domain or switch domains, and the steps to change over without broken links.

Use this page when you move your site from a Framer address (for example `my-site.framer.app`) to your own domain, or from one custom domain to another.

> [!WARNING]
>
> Auth Plugin does **not** change the **Domain** setting for you when you change domains in Framer. It is filled in once during setup. Until you update it by hand, password reset, magic link and welcome emails keep linking to the old address.

## What stays the same

* **Your visitors' accounts.** Accounts, passwords, labels and access are stored by Auth Plugin, not in the browser. Nothing is lost or moved.
* **Your settings.** Protected pages, page paths, branding, email templates and OAuth settings are kept.
* **The plugin scripts.** The shield and relay scripts find your site by its Framer project ID, not by its address, and Auth Plugin accepts requests from any address. They keep working on the new domain.
* **Google sign-in.** Visitors are sent back to the page they started from, and Google's callback points to Auth Plugin, not to your site. There is nothing to change in Google Cloud Console.

## What changes

* **Visitors are signed out on the new address.** A visitor's sign-in is kept in their browser for one specific address. It is not visible on another one, so each visitor signs in once more. This is a browser rule, and Auth Plugin cannot carry the sign-in across.
* **Each address counts separately.** `my-site.com`, `www.my-site.com` and `my-site.framer.app` are three different addresses with their own sign-ins.
* **Email links use the Domain setting.** Password reset, magic link and welcome emails build their links from **Settings > General > Domain**. The footer link in your emails uses it too.

## Switch to the new domain

**1. Add the domain in Framer and publish**

Connect the new domain in Framer and publish the site. Wait until the site opens on the new address.

**2. Update the Domain setting**

In the Auth Plugin panel, open **Settings > General** and set **Domain** to the new address, **including `https://`**, for example `https://www.my-site.com`.

**3. Save**

Click **Save Settings**. The next email your site sends uses the new address.

**4. Test sign-in on the new address**

Open your sign-in, sign-up and forgot-password pages on the new domain and check that they work.

**5. Test an email**

Send yourself a password reset email and make sure the link opens your new domain.

## How to write the Domain

| You type | Result |
| - | - |
| `https://www.my-site.com` | Works. |
| `https://www.my-site.com/` | Works. A trailing slash is removed. |
| `my-site.com` | **Broken email links.** Without `https://` the link is not a web address. |
| `https://my-site.com/blog` | **Broken email links.** Do not add a page path. Your page paths are set separately under Auth Page Paths. |

Auth Plugin does not check this field when you save it, so write it carefully and test one email.

> [!NOTE]
>
> Only your live (production) address belongs here. Staging and preview addresses are not used for emails.

## Emails sent before the change

Links in emails that were already sent still point to the old address until they expire. Password reset links last 30 minutes and magic links last 15 minutes.

Keep the old domain redirecting to the new one for a while, and make sure the redirect keeps the part after the `?` in the link. That part holds the one-time token, and without it the link will not work.

## Troubleshooting

| What you see | Why | What to do |
| - | - | - |
| Everyone is signed out after the change | Sign-ins belong to one address. | Expected. Visitors sign in once on the new address. |
| An email link opens the old address | The Domain setting still has the old address. | Update **Settings > General > Domain** and save. |
| An email link does nothing or looks broken | The Domain was saved without `https://`, or with a page path. | Use the format in the table above. |
| Sign-in works on one address but not the other | You are testing the other address, which has its own sign-in. | Sign in again on that address. |

## Related

* [Protected Pages](https://authplugin.com/docs/settings/protected-pages.md)
* [Email Templates](https://authplugin.com/docs/settings/email-templates.md)
* [Branding](https://authplugin.com/docs/settings/branding.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.