---
title: Configuring the MVC application
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

> **Info:** This page is a part of a tutorial, which you should follow sequentially from beginning to end. [Go to the first page: Using the Xperience interface](https://docs.kentico.com/13tutorial/using-the-xperience-interface.md).

In the [previous step](https://docs.kentico.com/13tutorial/developer-tutorial/asp-net-mvc-5-development-tutorial/installing-xperience.md) of this tutorial, you have installed the Xperience instance that will serve as your site's content repository and the associated MVC project you will use to present your site. In this step, you will configure the MVC application by enabling the **content tree-based routing** and **page builder features** via the _ApplicationBuilder_ class. The MVC application is used to serve the content managed by Xperience to regular users.

With _content tree-based routing_, the system automatically generates and matches page URLs based on their position in the website's content tree (demonstrated further in the tutorial). You do not need to perform any manual route mapping and configuration on the side of the MVC application. All routing logic is handled for you by the system. We will set up the pages on our tutorial website using this approach.

The _page builder feature_ enables non-technical users to manage page content via an intuitive drag-and-drop interface. When using the page builder, editors work with widgets – predefined, configurable pieces of content prepared by the developers.

Integrating the page builder is a multistep process that you will be guided through during this tutorial.

## Configuring the MVC project

1. Open the **MEDIOClinic.sln** solution in Visual Studio.
   - The solution is located in the path set by the **Target location** option during the installation process: _C:\inetpub\wwwroot\Xperience13_
2. In the _App\_Start_ folder, edit the **ApplicationConfig.cs** file.
   - The **ApplicationConfig** class is included as part of the MVC project created by the Xperience installer and you can use it to selectively enable Xperience features in the MVC application. The class's _RegisterFeatures_ method is called in the _Application\_Start_ method of _Global.asax_ by default, ensuring all configured features are automatically enabled when the site starts.
3. Uncomment the **builder.UsePageBuilder()** line in the **RegisterFeatures** method. You can also see that the project template also by default calls **builder.UsePageRouting()**, which enables the content tree-based routing feature. The **ApplicationConfig** class should now contain the following code:

   ```csharp

   using Kentico.Web.Mvc;
   using Kentico.Content.Web.Mvc;
   using Kentico.PageBuilder.Web.Mvc;

   namespace MEDIOClinic
   {
       public class ApplicationConfig
       {
           public static void RegisterFeatures(IApplicationBuilder builder)
           {
               // Enable required Kentico features

               // Uncomment the following to use the Page builder feature
               builder.UsePageBuilder();

               //builder.UseScheduler();
               builder.UsePageRouting(new PageRoutingOptions
               {
                   //EnableAlternativeUrls = true
               });
           }
       }
   }

   ```
4. **Rebuild** the _MEDIOClinic_ solution.

You are all set! Your MVC application is now configured, and you can start building your site's pages in the next step.

**Previous page:** [Installing Xperience](https://docs.kentico.com/13/installation/installing-xperience.md) — **Next page:** [Creating page types](https://docs.kentico.com/13tutorial/developer-tutorial/asp-net-mvc-5-development-tutorial/creating-page-types.md)

**Completed pages:** 3 of 10
