Last post Feb 20, 2013 04:54 AM by Kelmen
Feb 20, 2013 04:54 AM|kelmen|LINK
i have a main site a.com, done in ASP.NET 4, using URL Routing
created a vir dir in it named as a.com/v , converted to as App.
i have code to route a.com/lang/v/file.aspx to a.com/v/file.aspx
I can access a.com/v/file.aspx directly as well.
access directly work good, but through routing err.
I used routing code as below:
RouteTable.Routes.MapPageRoute(x.Name, x.Url, x.File);
from what we observed, routing seems to run the v app in the main app context.
we want to adopt the url a.com/lang/v/file.aspx for SEO purpose.
Looks like something about URL Routing doesn't work good with separate web app.
I believe if changes can make to run the v app in its own web context instead of a.com, problems should resolved.