Routing

Xperience sites respond to incoming requests using conventional ASP.NET routing. ASP.NET routing is a pattern matching system that is responsible for mapping incoming browser requests to specified controller actions. When the application launches, it registers one or more patterns within the framework’s route table to tell the routing engine what to do with any requests that match those patterns.

Xperience uses a routing approach that leverages the site’s content tree. With content tree-based routing, the system automatically generates and matches page URLs based on their position in the site’s content tree. You don’t need to manually map any MVC route templates. All routing logic is handled for you by the system.

For more advanced routing scenarios, you can implement custom controllers and actions that take over the handling for specific requests, allowing you to customize the routing process. See Content tree-based routing for more information.