I have a site where I want to have two different home pages: a general description page for anonymous users, and a dashboard page for logged-in users.
I am debating between two implementations:
- Both pages live at
- The page for anonymous users is located at
/and the dashboard is at
/dashboard, with automatic redirection between them based on whether a given user is logged in (e.g., if you're logged in and navigate to
/, you are redirected to
Is it cleaner to have both pages use the same URL or separate URLs?
Also, I imagine that choices for that question will affect the following:
- Caching: the anonymous page would be completely cached, while the logged-in page would not be cached at all (except for static resources). This could lead to issues with server caching, request speed, and UX (such as if one version of the page is cached in a user's browser when the other version should be displayed, instead).
- SEO: how would search engines react to such canonical URLs?
- Load time (due to redirects or to the server having to always reevaluate which page to display)