2

Have you guys successfully done mapping already? Say, I want to map:

/stars/alive/vedder to: /vedder

I tried putting this in web.config:

<system.web>
  <urlMappings enabled="true">
    <add url="~/" mappedUrl="~/stars/alive"/>
  </urlMappings>
</system.web>

However, it doesn't seem to do anything. I can only still access stars/alive/vedder, but not directly /vedder.

My nuget package is servicestack.razor 3.9.55.0.

What have I done wrong? Thank you.

P.S. I have this other question, not sure if they are related issues.

Community
  • 1
  • 1
Tom
  • 15,781
  • 14
  • 69
  • 111
  • Yes, they are related issues. As described in my answer to your other question, you can override the default behavior with a CatchAllHandler. It might also be possible using the web.config, I'm not able to say. – Pauli Price Jul 15 '13 at 15:33
  • meaning url mapping is not an existing feature? Because I picked this up from another post, and someone said it would work that way in web.config... – Tom Jul 15 '13 at 23:57
  • Meaning I don't have an ASP background, and I can't speak to what's possible with web.config settings -- my servicestack projects are self hosted. – Pauli Price Jul 16 '13 at 13:45
  • I think they are related. I tested using an existing project (v3.9.55.0) and routing / mapping works fine. Maybe worthwhile if you pasted your entire web.config (on the linked question). – hhandoko Jul 19 '13 at 07:14

0 Answers0