pHeaderInfo
's url
header. Something like this:
pHeaderInfo->GetHeader(pCtxt->m_pFC,
"url",strUrl.GetBuffer(dwUrlSize+1),&dwUrlSize);
strUrl.ReleaseBuffer();
strNewUrl = GET_REWRITE_FOR_URL(strUrl);
if ( strNewUrl.IsEmpty() == FALSE ) {
pHeaderInfo->SetHeader(pCtxt->m_pFC,
"url", (LPTSTR)(LPCTSTR)strNewUrl);
}
return SF_STATUS_REQ_NEXT_NOTIFICATION;
This is working in IIS4 and above.
Note that if you really need a good re-write/redirect filter for IIS you should look at IIRF ,but since it's not working for IIS4 i had to do this manually
What's wrong with http://www.urlrewriting.net?
ReplyDeleteJenya.
non of the solutions on the web work for IIS4.
ReplyDeleteYou are right.... There are still people who use IIS4?! It is running on NT4, right?
ReplyDelete