My bad. I figured out the answer right after I sent the first message. It's stored in the CGI.QUERY_STRING as "404;http://www.oursite.com/theirsitename" That's easy enough to handle :) Thanks anyway. Todd ----- Original Message ----- From: "Todd Ashworth" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 12:52 AM Subject: finding the "referer" after a redirect to an error page. | Oh jeez .. let me see if I can explain this ... | | We are setting up a site where people can come sign up and get their own web | site. The trick is, we don't want to have to fool with making changes in | the registry, or IIS. So, we came up with this "brilliant" idea of storing | a site name in the customer master database that is the name of the | subdirectory that their site would normaly sit in if we created a folder for | them and mapped it in IIS (www.oursite.com/theirsitename). The idea is that | when someone comes looking for www.oursite.com/theirsitename, it won't | really exist and they will be shuffled off to the default error page. We | have replaced the error page with a cf file that parses out "theirsitename" | and then performs a lookup in the database for information associate with | "theirsitename", sets some client variables, and then shoots them off to the | main application that everyone REALLY uses. The client variables contain | folder paths and database file info that determines what data is displayed | to what users. | | OK .. I hope that made sense. Anyway .. when the visitor is redirected to | the 'default error' page, the URL that they were trying to get to gets lost. | I don't know enough about IIS or HTTP protocols to know if it's even | possible to keep track of this information. Does anyone know how I could | accomplish this? | | Thanks! | | Todd | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists