locked
The page contains multiple canonical formats RRS feed

  • Question

  • User379720387 posted

    These are the only two errors left on my site, reporting for localhost:portno and localhost:portno/default

    I have found the following link but it is specific to MVC.

    What is the WebPages way of solving this?

    Wednesday, September 3, 2014 12:26 PM

Answers

All replies

  • User-1454326058 posted

    Hi wavemaster,

    For this requirement, you could use web route with regular expression to limit the request URL or you need to use IIS URL Rewrite to achieve that.

    More information, please refer to:

    # More Flexible Routing For ASP.NET Web Pages

    http://www.mikesdotnetting.com/Article/187/More-Flexible-Routing-For-ASP.NET-Web-Pages

    Best Regards,

    Starain Chen

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 4, 2014 4:29 AM
  • User379720387 posted

    Ok, thanks.

    That is very helpful, because I had gotten to the point where I was wondering if I should start renaming some of these files for user convenience purposes.

    Looked there before I posted but used the wrong search term.

    Thursday, September 4, 2014 11:00 AM