Articles → ASP.NET CORE → Routing In ASP.NET Core
Routing In ASP.NET Core
Routing The ASP.NET MVC Application
 
Routing In ASP.NET Core
 
| Rule | URL | Description | 
|---|
| Routes are mapped to physical view files. | http://localhost/index | The URL maps to the physical file index.cshtml. | 
| Index.cshtml is the default document. | http://localhost | The URL maps to the physical file index.cshtml. | 
| The folder name is added to the URL. | http://localhost/Admin/privacy | The URL is assigned to privacy.cshtml within the Admin folder. | 
How Is Routing Configured In Startup.cs?
 
Click to Enlarge
- Creating an area.
- Views and Controllers are in the root of the project folder.
Click to Enlarge
| Posted By  - | Karan Gupta | 
|  | 
| Posted On  - | Wednesday, February 17, 2021 | 
|  | 
| Updated On  - | Monday, June 14, 2021 |