|
Subject:
|
Trouble with UrlMapping in webconfig !
|
|
Posted By:
|
bananas
|
Post Date:
|
8/24/2006 5:16:27 PM
|
hi, I'm trying to map a Url such as
www.mywebsite.com/companyname
to
www.mywebsite.com/aspxpage.aspx?companyname
is there anyway of doing this? - so I would be redirecting my user to a webpage from them just typing in /companyname (so with no extensions).
I have read up on url mapping and it would seem microsoft only support a url mapping of an aspx page?
|
|
Reply By:
|
thenoseknows
|
Reply Date:
|
8/24/2006 11:20:52 PM
|
ASP.NET does not support that natively, however a number of 3rd party tools exist that do, and I might have found one for free here:
http://pietschsoft.com/blog/post.aspx?postid=762
The link to it from the Channel 9 website is here:
http://channel9.msdn.com/ShowPost.aspx?PostID=136559
And by the way, let me know if that works, because I might need to implement that myself sometime.
Neil Timmerman Programmer Veris Consulting
|
|
Reply By:
|
bananas
|
Reply Date:
|
8/25/2006 7:21:26 AM
|
thankyou for the links
I have implemented the code from that webpage to use RegEx.
It works as far as the name goes but it still requires me to use the .aspx extension.
I don't know if you know of a regular expression to help?
I have got around my problem temporarily by using Virtual Directories by setting them up in my Host's Control Panel.
|
|
Reply By:
|
thenoseknows
|
Reply Date:
|
8/30/2006 12:47:36 AM
|
No problem.
I'm not that great of a programmer, but I rock at google searching!
Neil Timmerman Programmer Veris Consulting
|