Using urlMappings properly in web.config

B

Bill

On an ASP.NET 2.0 server, is there a way I can use urlMappings with Classical ASP pages?

The web.config file, in my web root, is this:

<?xml version="1.0" ?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<customErrors mode="Off"/>
<urlMappings enabled="true">
<add url="/test1/foo1.asp" mappedUrl="/test2/foo2.asp" />
</urlMappings>
</system.web>
</configuration>

Now, /test1/foo1.asp does not exist, /test2/foo2.asp does. Regardless, when I enter the
address for foo1.asp in my browser, I get the standard Error 404. What am I missing
here?

Thanks,

Bill.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,815
Latest member
treekmostly22

Latest Threads

Top