What you do is use ListToArray(list [, delimiters ]) to parse the url.
ListToArray(cgi.request_uri,"/") This will give you an array with each section of the url in its own cell. You want to use the information stored 'after' the url to do your search. -----Original Message---- -From: [EMAIL PROTECTED] -Date: Oct 16, 2007 11:51 -To: "CF-Talk"<[email protected]> -Subj: Re: Creating replicated sites with coldfusion - -Ok, this was what my original thought was... can you explain this part better for me please: -This page will parse the cgi.request_uri string into an array based on the -"/" character. ----------- -This is the part that I have been struggling with... thanks! - - ->Use a custom 404 page. You will need to update the 404 error handling in ->your server (Apache, IIS, etc) to point to this new page on all 404 errors. -> ->This page will parse the cgi.request_uri string into an array based on the ->"/" character. -> ->Do a check in the database for the user which matches the value in the last ->position in the array. (or you can do an 'or' check for each of the ->positions after the host_name) -> ->If the result is eq 1, then display the agent's website. -> ->If the result is gt 1, then display a 'choice' of which one the user had ->intended to type in. -> ->If the result is eq 0, then show your 404 error page. -> ->William -> ->-- ->William E. Seiter -> ->Have you ever read a book that changed your life? ->Go to: www.winninginthemargins.com ->Enter passkey: goldengrove -> ->Web Developer ->http://William.Seiter.com -> ->Hi, I am working on a site for a MLM company that wants each person who -> signs up with the company to have their own replicated website. The -> replicated site is really no more than each person having a separate URL -> that is defined by the username they put in when they sign up- -> everyone's site is exactly the same otherwise. For example, if I signed up ->for -> the program with a username of "jessica" my replicated website's -> address would be" "http://www.sample.com/jessica". -> ->I do not want to have to create a separate folder & index page for each -> & every person who signs up, because that seems like it would be kind -> of ridiculous & waste a lot of space, so how can I (firstly) trick the -> server into believing there is a separate page for each person even -> without a folder with their username existing in my directory? -> ->Second, and I guess this question could be answered by the first, how -> can I get that username to be pulled from the URL for use in dynamic -> queries and the like. -> ->-More or less, I am just wanting to somehow convert a query string such -> as "http://www.sample.com?username=jessica" into the more -> user-friendly "http://www.sample.com/jessica". -> ->I think i am making this harder than it really is.. hopefully I have -> made this clear enough to understand, and any help would be greatly -> appreciated! Thanks!! - - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291247 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

