Forum Moderators: open
Working on 'Windows Server 2003 + Microsoft-IIS/6.0', I'd like to
create this kind of URLs:
[myserver.com...]
I'd like to use:
------
myPath = Request.ServerVariables("PATH_INFO")
-----
in order to handle it and build more-elegant URLs, instead of
page.asp?id=foo1&user=foo2
But when accessing that URL, I get a 404 error message. Any
similar experience?
Thank you very much.
Don't you want
[myserver.com...]
Second, in IIS, set the default 404 handler to URL and point it to where the 404.asp page sits.
Third, use a url that's like http://www.example.com/foo-page_url/bar1-bar2/bar3. You can use any combination of url's like this.
Forth, in your 404 page, it's easy to grab the URL that's being hit, split your variables needed, then perform DB calls or how you are serving up content.
Any questions, sticky me.