You can use FormExtensions.BeginRouteForm
method to achieve this.
First, create a route in RouteConfig
class like below:
routes.MapRoute(
name: "FormRoute",
url: "Some/Prepended/Path/{controller}/{action}"
);
then use Html.BeginRouteForm
@using (Html.BeginRouteForm("FormRoute", new { },
FormMethod.Post, new { @class = "my-class" })){}
Finally, you can call your action method like below:
http://localhost:57744/Some/Prepended/Path/YourController/YourAction
For more details about FormExtensions.BeginRouteForm Method, see below link: http://msdn.microsoft.com/en-us/library/dd505047(v=vs.118).aspx