|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
getting to a user page by URL e.g. www.mysite.com/username
Hello all
i would like to manage to do the following: in my website there r registered users. each user has a profile. i would realy like to help the other users access a certain user profile by: www.mysite.com/username rather then www.mysite.com/viewprofile.asp?user=username i'v seen that made on serveral websites, how can i do it? i geuss thats involving giving the server default asp page for parameters or somthing like that...(I am using IIS 5) plz help, thank u all. Last edited by KarahaNa : August 19th, 2003 at 06:56 AM. |
|
#2
|
||||
|
||||
|
Well, depending how many users you have, you could just make a page for each user, and link to the page with plain ol' HTML, which would give you the address you wanted.
![]() |
|
#3
|
|||
|
|||
|
no..
no... thats not an option
i have many users... the thing is that every thing is ok with: www.mysite.com/viewprofile.asp?user=karahana i just want some kind of auto-reference from: www.mysite.com/karahana TO: www.mysite.com/viewprofile.asp?user=karahana a good example for that can be found in: www.faceparty.com/Karahana <- for example its totaly automated... i just dont know how to do it :/ Last edited by KarahaNa : August 19th, 2003 at 09:46 AM. |
|
#4
|
|||
|
|||
|
Put in a custom 404 error page that reads the url requested and redirects to the correct URL page. Ie
url = Request.ServerVariables("QUERY_STRING") (you could do this in PHP if you are using linux) parse this string for the /username, then use this to build your redirect URL |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > getting to a user page by URL e.g. www.mysite.com/username |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|