Cancelled

Need some help with ASP.Net Core routing

I have some legacy URLs that I need to route properly and efficiently. I have a new ASP.Net Core application with some pretty standard routing. I have to support legacy links that might come in through emails, bookmarks, etc. The links have a format that is one 'segment', like so:

[login to view URL]

http://www/[login to view URL]

From the above, I know that for the first one, I might need to redirect to the 'team' controller, then do a database lookup for the name 'san-diego-padres'. For the second one, it might be the players controller, the index action, with an id of 'steelers'.

The URLs contain information that is both required to properly route the request to the specific information, and some information that can be safely ignored.

The obvious answer would be to create a route that didn't conflict with any of the controller names, parse the data to see how it should be routed, and redirect accordingly, but it seems that there would be a better approach. I can't really use the catch-all wildcard since it would have to be at the beginning of the segment. I have about 20 or so variations that I need to support, some with the id data at the beginning, some in the middle, and some at the end.

Interested in a best practice solution that doesn't change any of the existing URLs. Note that this is not really a project, if someone has a short solution that I can quickly try and confirm that it works, they will get paid! Thanks!

Skills: .NET, ASP.NET, C# Programming

See more: asp.net core httpget attribute, asp.net core 2.0 routing, asp.net core custom routing, asp.net mvc route attribute, asp.net core urlhelper, asp.net core route attribute, asp.net core catch all route, asp.net core routeprefix, asp.net core mvc, using postgresql how to develop login and register in asp.net core in angular2, asp.net Core, asp net core, ASP.NET Core API , linux asp.net core, C#, .net, ASP.NET, Core, asp.net core, asp.net core bootstrap, need help with asp net, i need help with my asp net website, i need help vb net

About the Employer:
( 77 reviews ) San Diego, United States

Project ID: #17050541

3 freelancers are bidding on average $145 for this job

$155 USD in 3 days
(2 Reviews)
0.8
ONYEMATeam

hi dear i'm expert in client scripting javascript , jquery , angularjs , asp.net and desktop , soliditry , xamarin javascrip contract and , erc20 see my last project [login to view URL] token erc20 server scripting php , aasp. More

$250 USD in 3 days
(2 Reviews)
0.4
fastwriter24

We are highly experienced Post Graduate Engineers, Doctors, IT, ITES, Software, Infrastructure Professionals, Web Designers and IT Architects. We can redo, improve, and publish any engineering, scientific MATLAB, SI More

$30 USD in 1 day
(0 Reviews)
1.5