views:

53

answers:

1

Hello,

When I turn on URL Rewriting to access a page, the ~ no long is replaced with the application root.

For example should produce:

but its only outputting

The tilda is supposed to be replaced with the application root path but it looks like IIRF is messing with that somehow?

Any ideas on how to fix this?

A: 

The tilde (~) character represents the root directory of the application in ASP.NET. It is replaced with the appropriate value in ASP.Net server controls before sending the markup to the client.

IIRF on the other hand rewrites URL's before entering the ASP.Net pipe. It transforms requests coming from clients.

IIRF modifies requests, whereas ASP.Net transforms the tilde in the response.

Therefore, in the markup sent to the client, you should never see a tilde.

If you do have a tilde in the markup sent to the client, it is probably a bug and you should modify your code to have it replaced correctly.

Some pointers to make sure the tilde gets replaced:

marapet