redirecting from www url to non-www url in Google Firebase static hosting

redirecting from www url to non-www url in Google Firebase static hosting - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the redirecting from www url to non-www url in Google Firebase static hosting error on your web browser. Problem :


I am using Google Firebase static hosting.


When a user types and enters www.example.com, I want the address to change to example.com and show the user content of example.com.


How can this be achieved? E.g. In Firebase, can I say that I want that subdomain to be redirected there? I don't think there is a .htaccess file.


Note:


Answers to this question that advise on dns seems to be only one part of the solution. I talked with my domain name and dns manager (Hostinger) tech support, and they insist that there are things to be done on Firebase.


Solution :

In Firebase click the button to add a custom domain to your site. In the opened window, there is a checkbox that if checked will make that custom domain a redirect for another address. I used that and works.


We hope that this article has helped you resolve the redirects, 302-redirect, firebase error in your web browsers. Enjoy browsing the internet uninterrupted!

Comments

Popular posts from this blog

How to redirect to any domain [duplicate]

"302 found" for index page bad for SEO?

Create redirect from url like www.example.us/?p=100&option=