I have a similar project for users ...
I use ASP to create the directory, and copy a defualt.asp file of mine
into it ... the asp file goes something like ...
-- default.asp --
<%
Dim userName
userName = Replace(Replace (Request.Server Variables("Scri pt_Name"),
"default.as p", ""), "/", "")
Response.Redire ct("/viewartist.asp? userid=" & userName)
%>
OR BETTER YET ... ANOTHER PROJECT I HAVE WORKED ON
I just wrote the asp file upon user creation
<%
'// Code to create directory
'// Code to write a new asp file
%>
-- default.asp --
<%
Response.Redire ct("/viewartist.asp? userid=123456")
%>
This second solution is better ... just when you create the user
account make sure that their name is not in the list of folders you
are using for site creation ... what I always do is just have all of
my folders start with an underscore ... and not allow any usernames to
start with an underscore ... with username validation this is a sinch
.... AND it keeps your folders alphabetically first for easy sorting.
just a thought ... I haven't tried using the 404 ... but would be
nervous doing so ... besides ... if they have images or anything ....
you can do what I did and create
/username/images/
/username/statictextdata/
Another thing I did ...
I kept all of their data in the database, but wrote other parts to
their statictextdata folder so the database wasn't being hit all the
time for viewing.
I almost ALWAYS do this for my advanced shopping systems. products are
ADDED, UPDATED, DELETED ... MUCH MUCH less than SELECTED
In my shopping systems I generally have all products in a database,
have it where they can be added to, updated, deleted through a UI ...
then have a button to "SEND CHANGES TO WEBSITE" ((althought
technically they are on a website .. their extranet.
Then, send changes writes over the products in a textdata/products/
folder ... usallly in the form of FULL pages of products html
Anyway ... too much info ... sorry
On Thu, 8 Jan 2004 12:32:20 -0000, "Dan Nash"
<da********@mus oswire.co.uk> wrote:
Hi
Subject line doesn't make sense I know. Basically we have a number of people
on our system. They can sign up automatically and create their page.
What I want to be able to do is give them their own url (eg.
www.mydomain.com/theirsite).
Because they can sign up without our interference, I need some way of
creating a directory, with an index page that goes to their site, or some
way of mydomain.com's index.asp reading the "/theirsite" and redirected to
wherever it needs to go (viewartist.asp ?id=them). Is that possible or will
the web browser always try and go to a the "/theirsite" directory?
Thanks for your help!
Dan