tags:

views:

16

answers:

0

we want to short the down the url in mvc

this is what it looks like www.xxx.com/orgin-to-destination/date/time

and we are interested in www.xxx.com/origin-to-destination

On the webpage we have 4 testboxes for this all 4 parameters

In the controller we have a method which accepts 4 parameters which are origin,destination,date,time

So whenever the user hits the submit button it will construct

www.xxx.com/orgin-to-destination/date/time

but i want

www.xxx.com/orgin-to-destination

The issue is people will tend to type www.xxx.com/orgin-to-destination/date/time and i want to increase the index of www.xxx.com/orgin-to-destination in google (SEO) and not www.xxx.com/orgin-to-destination/date/time