Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

personalized URL (PURL)

Posted on 2009-06-29
6
Medium Priority
?
360 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month8 days, 18 hours left to enroll

604 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