Hi all,
I'm running a site in .asp which I'm now trying to updte to c# .NET. So far so good, but I've hit a wall with URL rewriting. In ASP I have a redirect.asp file which forces IIS to an Error 500 whereby it executes the file for redirect, and it's suited us just fine for a few years.
The format we have is, for example, "news/news_title.html
The original URL is news?intID=777
All I can get with IIS URL rewrite is news/777
If I include the title string as news?intID=777&title=news%20title I end up withnews/777/news%20title
So what I'd like to know is if it's possible to:
- Remove the ID entirely
- Replace the %20 with an _ and append with a.html
If it's not possble I'll have to try and find some help writing some custom code, but if IIS can replicate our setup out of the box it would be nice to use it.