Solved

personalized URL (PURL)

Posted on 2009-06-29
6
353 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
ID: 24739282
you need to use VirtualHosts to setup (sub)domains, follow this
http://blog.jlbn.net/?p=23
0
 
LVL 8

Expert Comment

by:yfastud
ID: 24739328
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
ID: 24739429

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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 1

Author Comment

by:its_ns_04
ID: 24739528
.
0
 
LVL 17

Expert Comment

by:jasonsbytes
ID: 24739846
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
ID: 24740608
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
A short film showing how OnPage and Connectwise integration works.

947 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

21 Experts available now in Live!

Get 1:1 Help Now