2

I expected this would also map the default homepage as in http://localhost/ but it is not hit.

RouteTable.Routes.Add(new Route("{Keyword}", new HomeHandler()));

Question is of course why not? I would like to map the root to some other page.

1
  • Could you show your complete routing table? Commented Oct 10, 2009 at 8:08

2 Answers 2

2

I haven't tried this yet but try removing the default document from IIS's configuration. For IIS 7 this setting is in web.config:

<configuration>
 <system.webServer>
  <defaultDocument>
   <files>
    <clear />
   </files>
  </defaultDocument>
 </system.webServer>
</configuration>
Sign up to request clarification or add additional context in comments.

Comments

1

The answer is somewhat complex. It was on IIS6 and we had to add a specific property. I cannot really remember what we did back then but you can google it, that's how I found it.

1 Comment

It would be more useful to put in a link to what you found.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.