G
Guest
Apache has a look-back feature that lets it scan back down the URL if it
doesn't find what it is looking for.
For example: http://www.domain.com/article.php/999/12
In this above case there is no directory or file called 12, so it looks at
999. There is no directory or file called 999 so Apache looks down the URL
and sees article.php, which does exist, and calls up that script. Apache
also has a global variable called $PATH_INFO that is created on every HTTP
request. What this variable contains is the script being called and
everything to the right of that information in the URL. So in the example we
have been using $PATH_INFO will contain article.php/999/12.
How could we implement such behaviour in IIS and ASP.NET?
Could anybody provide some useful links to similar techniques?
Thanks
doesn't find what it is looking for.
For example: http://www.domain.com/article.php/999/12
In this above case there is no directory or file called 12, so it looks at
999. There is no directory or file called 999 so Apache looks down the URL
and sees article.php, which does exist, and calls up that script. Apache
also has a global variable called $PATH_INFO that is created on every HTTP
request. What this variable contains is the script being called and
everything to the right of that information in the URL. So in the example we
have been using $PATH_INFO will contain article.php/999/12.
How could we implement such behaviour in IIS and ASP.NET?
Could anybody provide some useful links to similar techniques?
Thanks