personalized URL (PURL)


I want something called Personalized URL, so that if a user "Sam" types, he gets his page and say if some other user "Nancy" types, she gets her own page.

How do I implement it ? I am totally confused...
Who is Participating?
its_ns_04Connect With a Mentor Author Commented:

well, in fact , I am looking for something different.

The personal web pages simply show information about that user and those information are pulled from a database. Also we might run up with tens of thousands of such users, it is not possible to have all those entries in virtual host.

So, I am just wondering if there is a way (by .htaccess file or whatever) so that, the URL gets rewritten to and so on ? This way, the details of the user will be pulled later by that cfm file and their information gets displayed.

you need to use VirtualHosts to setup (sub)domains, follow this
and if you don't use wampserver, just replace the paths w/ your desire ones ;)
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

its_ns_04Author Commented:
First you need to set up a wildcard dns entry *

Then use .htaccess to capture subdomain and rewrite it.
Correct me if I'm still wrong, but let me clarify this since .htaccess alone can NOT get the data out from database and also can NOT substitute VirtualHosts to setup user's base document roots.
1. If you only want to show the user's information in only 1 page and nothing goes further, you need to setup your own script which will capture the username which is part of url when the user input the url in browser, then that script will look up in database and display the information to that 1 page
2. However, if you want that user's info page will be the first page and from there the user will go further but still remain in his/her directory path, you still need to create the script described above, and you also need to setup wildcard for dns and vh, of course if your live host or you've already setup to allow wildcard, then use .htaccess to redirect users to proper directory based on input url
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.