title: Route Override not working in asp.net core 3.1 razor pages
body: <p>I'm using <code>Asp.Net Core 3.1 Razor pages</code>. I need to override the the route for one of the page in my area.</p>
  
  <p>I have <code>Home</code> page in my <code>Area</code> - <code>Blog</code> and the current route is <code>localhost/blog/home</code>. I need to change this to <code>localhost/blog</code>. I have an <code>Index</code> page in the same blog area but it has an route parameter. So it will be <code>localhost/blog/my-blog-name</code>. And this will not interfere with <code>localhost/blog</code></p>
  
  <p>I added the setting in <code>ConfigureServices</code> in <code>startup.cs</code></p>
  
  <pre class="lang-cs prettyprint-override"><code>services
      .AddRazorPagesOptions(options =&gt; 
      {
          options.Conventions.AddAreaPageRoute("Blog", "/", "/blog/home");
      });
  </code></pre>
  
  <p>Here is my folder structure,</p>
  
  <p><a href="https://i.stack.imgur.com/zTpf6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zTpf6.png" alt="enter image description here"></a></p>
  
  <p>But when i navigate to <code>localhost/blog</code> I get an <code>404</code> not found. Please assist on where I'm wrong.</p>