Forum Discussion
Arie
Jul 26, 2012Altostratus
Use HTTP::host to verify the domain name. Keep in mind that www.domain.com and domain.com are different hosts.
To 'mask' the request so that "/file" is sent to the servers as "/file.aspx" you can use HTTP::uri (concatenate .aspx).
However, keep in mind that you'll need a way to handle legitimate requests for folders (going to the default page); you don't want to add .aspx to those requests.
In the end, it may be better to use the .NET feature for serving pages without the extension.