When the user enters my page example.com I detect if they have an active session. If so, I redirect it to example.com/dashboard. My code:
example.com
example.com/dashboard