Isapi_rewrite 3.0 and .net 4.5 webforms

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 3
Joined: 16 Oct 2013, 06:03

Isapi_rewrite 3.0 and .net 4.5 webforms

10 Jan 2018, 06:54

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?

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 17 guests