|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
how do i do this neat trick like at www.msn.com
example http://microsoft/0/0/ and it loads up to that exact page. how do they do this in asp james yang i know you might know so help...... ![]()
__________________
Apache Expert |
|
#2
|
|||
|
|||
|
Hey asp_man, I'm not quite sure exactly what you're getting at. When I enter in the url on msn like "www.msn.ca/0/0 all I see is an error page. It produces no valuable results. Could you provide more details about what it is you want?
|
|
#3
|
|||
|
|||
|
lol Im not so sure man...I know its supported by the web server though ... and I know mitchelle knows how to do this in IIS so im in process of getting him to tell me...
))
__________________
Regards, James Yang .NET Developer / Network Engineer MCSE, MCDBA, MCSA, CCNA http://www.yellowpin.com/ http://www.opentechsupport.com/ |
|
#4
|
|||
|
|||
|
OK,
Well basically in IIS you need to change the error documents page for your virtual directory. To do this, fire up MMC and load the IIS snap-in. Right click on your site then properties. Goto the custom errors tab and look for the 404 Default "Not Found" error. Edit it and change the message type to URL and point it to an ASP page such as /404.asp. You need to add some code like this to 404.asp: <% qs = Request.QueryString qsArray = split(qs, ";") qsParams = qsArray(1) Response.Write qsParams %> Basically the qsParams variable will now have the URL and the parameters that you can extract from and use select case to work out what you want to do with them, etc ![]() |
|
#5
|
|||
|
|||
|
I think he is talking about the exact url (http://www.website.com/user/123) instead of http://www.website.com/index.asp?myuserid=123.
In aspx (asp.net), you can set this feature (vanity url) in global.asax. I learn this from the book of ASP.net unleashed, by http://www.samspublishing.com. In Unix, I think you need to set certain thing (I am not familiar with Unix) which I think that myth can help you out.
__________________
Regrads, ckchin |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > How do i do this? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|