Overview - Redirect and rewrite rules
What is it?
Redirect and rewrite rules in Firebase Hosting let you control how web requests are handled. Redirects send visitors from one URL to another, changing the address they see. Rewrites keep the URL the same but serve different content behind the scenes. These rules help manage site structure, user experience, and backend integration.
Why it matters
Without redirects and rewrites, users might see broken links or confusing URLs, hurting their experience. Redirects guide users smoothly to new pages or updated content. Rewrites let you serve dynamic content or APIs without changing URLs, making sites faster and easier to maintain. They keep websites organized and user-friendly.
Where it fits
Before learning redirects and rewrites, you should understand basic web hosting and URLs. After mastering these rules, you can explore advanced Firebase features like Cloud Functions and security rules to build dynamic, secure web apps.