Urlmappings - works locally not on server IIS
Posted on 2007-03-18
I'm trying to use the urlmappings in asp.net 2.0 on iis 6 / win 2003.
Everything works fine on my local xp vs 2005 edition, but on server I get a 404 page.
Here is sample of web.config with relevant bits:
<add url="~/wakefield.html" mappedUrl="~/partner/index.aspx?p=1"/>
- when I go to wakefield.html local, everything works fine and it goes to the correct page.
On the server I get a 404 page.
If I change it to
<add url="~/wakefield.aspx" mappedUrl="~/partner/index.aspx?p=1"/>
ie change the file type to aspx from html, everything works fine, so I know the code is ok. Am I missing something in the setup of IIS and the way it copes with the .html?
Any help greatly appreciated,