Ask Your Question
4

What is the process for redirecting the old domain to the new one using Firebase Hosting?

asked 2021-09-02 11:00:00 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-11-19 21:00:00 +0000

nofretete gravatar image

To redirect the old domain to the new one using Firebase Hosting, you need to follow these steps:

  1. Add the new domain to Firebase Hosting: Go to the Firebase Console > Hosting > Connect Domain and follow the instructions to verify and add the new domain.

  2. Set up the redirects: In the Firebase Console, go to Hosting > Redirects and add a new redirect rule to redirect traffic from the old domain to the new one. For example, if your old domain is www.olddomain.com and your new domain is www.newdomain.com, you can set up a redirect rule to redirect any traffic from olddomain.com/* to newdomain.com/$1.

  3. Update the DNS settings: Update the DNS settings for the old domain to point to Firebase Hosting. You can find the DNS settings in the Firebase Console under Hosting > Connect Domain > DNS.

  4. Wait for the DNS changes to propagate: It might take some time for the DNS changes to propagate, so you need to wait for a few hours for the redirect to start working.

Once the DNS changes have propagated, any traffic coming to the old domain will be redirected to the new domain seamlessly.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-09-02 11:00:00 +0000

Seen: 9 times

Last updated: Nov 19 '21