I have a self-hosted application which has an index.html
file at its root. When I run the application and go to localhost:8090
(app is hosted on this port) the URL looks like: http://localhost:8090/index.html
. Is there anyway I can make the URL to just be: http://localhost:8090
when on the index.html page?
Note
I'm using V3 of ServiceStack
ServiceStack v4
In ServiceStack v4 I use a raw http handler to intercept the root. In your AppHost
Configure
method:ServiceStack v3
In ServiceStack v3 you can do a similar thing, but you will have to include the
CustomActionHandler
class yourself. So in your configure method:The
CustomActionHandler
as provided by Mythz here:Hope that helps.