© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
31 replies
Pokey

❔ Disable Swagger index.html Routing

I have just added and configured Swagger on my project with a custom rote, however, when launching my app on Debug, Swagger has taken over the root route
/
/
and redirects it to
/index.html
/index.html
which is 404 because of my custom setup.

How can I tell swagger to quit redirecting this and to leave it alone, and let my other routes take over (as I have a controller mapped to
/
/
)?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

iis index.html
C#CC# / help
3y ago
❔ Blazor WebAssembly change index.html to .cshtml
C#CC# / help
3y ago
Swagger + Database problem
C#CC# / help
2y ago
Swagger, openAPI specification
C#CC# / help
3y ago