D
darrel
We're using ISAPI rewrite on our site.
We have a URL that looks like this:
/district/2/
that gets rewritten to:
/default.aspx?siteID=2
This works. If we have it write out the URL and such, we see this info:
FilePath:/default.aspx
URL:http://localhost/default.aspx?siteID=0
RAWurl:/default.aspx?siteID=0
The problem is that if we trigger a postback, the application can't find
it's own page. Ie, on postback of this page:
/district/2/
we get an error:
"can't find /district/0/default.aspx"
In otherwords, it's looking for /district/0/default.aspx instead of
/default.aspx to reload itself.
One fix is to add a new rewrite rule so that /district/0/default.aspx is
rewritten back to /default.aspx but I'm not sure why I have to do that. It
appears that .net should be seeing the 'real' url but isn't.
-Darrel
We have a URL that looks like this:
/district/2/
that gets rewritten to:
/default.aspx?siteID=2
This works. If we have it write out the URL and such, we see this info:
FilePath:/default.aspx
URL:http://localhost/default.aspx?siteID=0
RAWurl:/default.aspx?siteID=0
The problem is that if we trigger a postback, the application can't find
it's own page. Ie, on postback of this page:
/district/2/
we get an error:
"can't find /district/0/default.aspx"
In otherwords, it's looking for /district/0/default.aspx instead of
/default.aspx to reload itself.
One fix is to add a new rewrite rule so that /district/0/default.aspx is
rewritten back to /default.aspx but I'm not sure why I have to do that. It
appears that .net should be seeing the 'real' url but isn't.
-Darrel