Solved

personalized URL (PURL)

Posted on 2009-06-29
6
352 Views
Last Modified: 2012-05-07
Hi,

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

How do I implement it ? I am totally confused...
0
Comment
Question by:its_ns_04
  • 3
  • 2
6 Comments
 
LVL 8

Expert Comment

by:yfastud
Comment Utility
you need to use VirtualHosts to setup (sub)domains, follow this
http://blog.jlbn.net/?p=23
0
 
LVL 8

Expert Comment

by:yfastud
Comment Utility
and if you don't use wampserver, just replace the paths w/ your desire ones ;)
0
 
LVL 1

Accepted Solution

by:
its_ns_04 earned 0 total points
Comment Utility

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 www.mydomain.com/index.cfm?name=nancy and so on ? This way, the details of the user will be pulled later by that cfm file and their information gets displayed.

0
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 
LVL 1

Author Comment

by:its_ns_04
Comment Utility
.
0
 
LVL 17

Expert Comment

by:jasonsbytes
Comment Utility
First you need to set up a wildcard dns entry *.domain.com.

Then use .htaccess to capture subdomain and rewrite it.
0
 
LVL 8

Expert Comment

by:yfastud
Comment Utility
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
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now