?
Solved

personalized URL (PURL)

Posted on 2009-06-29
6
Medium Priority
?
357 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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

The Ideal Solution for Multi-Display Applications

Check out ATEN’s VS1912 12-Port DP Video Wall Media Player at InfoComm 2017. Kerri describes how easy it is to design creative video walls in asymmetric layouts and schedule detailed playlists ahead of time with its advanced scheduling feature.

Question has a verified solution.

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

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…
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 brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month14 days, 5 hours left to enroll

801 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