I have an ASP.Net MVC site that is running ServiceStack v3.9.71. I have a new ServiceStack API that is configured to be available at
~/api/* but need to redirect POST requests from old locations
~/service/* to the new API however I am coming unstuck.
I've tried using url redirects but in doing so the
POST becomes a
GET and the POST data is lost.
<rule name="GetVenuesByLocation" stopProcessing="true"> <match url="^service/getvenuelistbylocation/$" /> <action redirectType="Temporary" type="Redirect" url="/api/VenueListByLocation" /> </rule>
Can this be achieved and if so could someone please point me in the right direction?