Isapi_rewrite 3.0 and .net 4.5 webforms
1 post
• Page 1 of 1
Isapi_rewrite 3.0 and .net 4.5 webforms
I'm trying to migrate a webforms project from .net 3.5 to .net 4.5 and am having problems because .net no longer appears to observe the base href and is messing with all my relative paths.
I don't want to switch to .nets url rewriting feature because I'm comfortable with Isapi_rewrite and the benefits of .htaccess but I was just wondering if anyone had any advice on how to get the two to work together.
So far my googling has told me I need to use <%= Page.ResolveUrl() %> or <%= VirtualPathUtility.ToAbsolute()%> around all the relative paths in my HTML, but this seems like a work around to me rather than the correct way to set the site up in the first place.
If you were building a webforms project in .net 4.5 and you wanted to use Isapi_rewrite 3.0/Ape to do your friendly urls how would you start?
I don't want to switch to .nets url rewriting feature because I'm comfortable with Isapi_rewrite and the benefits of .htaccess but I was just wondering if anyone had any advice on how to get the two to work together.
So far my googling has told me I need to use <%= Page.ResolveUrl() %> or <%= VirtualPathUtility.ToAbsolute()%> around all the relative paths in my HTML, but this seems like a work around to me rather than the correct way to set the site up in the first place.
If you were building a webforms project in .net 4.5 and you wanted to use Isapi_rewrite 3.0/Ape to do your friendly urls how would you start?
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 9 guests