Re: Cf puzzle
I son't have the specifics, but it seems to me that you should be able to catch the 404 error pages using the .htacess file, then redirect them to a custom cfm page where you could grab the directory name as a string, parse out the stuff you don't want, then do your 'funky treatment' from there. I know that SOMEBODY out there has got to be doing something like this already that could fill you in on the specifics of what to put in the .htacess files, etc.If not, I could hunt around and find something.Let's see what you get from the rest of the list users first. Ray http://www.crystalvision.org At 10:12 AM 3/31/2004, Gabriel Robichaud wrote: Ok folks! I have a directory... c:/cfusionmx/wwwroot/somedir/ That has Application.cfm and index.cfm files. Now... that being said.Lets assume that in order to hit the index.cfm I need to type in the browser http://www.gabrielrobichaud.com/ Now what I would like to do, is catch these types of hits http://www.gabrielrobichaud.com/xyz Xyz is not a directory, it never will be nor is it a file.I would like to catch that xyz, put it invariable and then do some funky treatment. BUT, what I am getting currently is: The page cannot be found error message. How can I get this xyz value and put it in a variable? Any leads would be really appreciated!!! Gabriel [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Cf puzzle
Hi, Try doing some searches on the houseoffusion archives and/or the almighty google: If you are using apache, just search for mod_rewrite for you are using IIS, search for IIS and mod_rewrite Another option is this: http://www.spike.org.uk/go/friendly-urls An additional one (dirty hack) would be to use the 404 error handler. /Hugo - Hugo AhleniusE-Mail: [EMAIL PROTECTED] Project Officer Phone:+46 8 230460 UNEP GRID-ArendalFax:+46 8 230441 Stockholm OfficeMobile:+46 733 467111 WWW: http://www.grida.no - | -Original Message- | From: Gabriel Robichaud [mailto:[EMAIL PROTECTED] | Sent: Wednesday, March 31, 2004 17:13 | To: CF-Talk | Subject: Cf puzzle | | Ok folks! | | I have a directory... c:/cfusionmx/wwwroot/somedir/ That has | Application.cfm and index.cfm files. | | Now... that being said.Lets assume that in order to hit the | index.cfm I need to type in the browser | http://www.gabrielrobichaud.com/ | | Now what I would like to do, is catch these types of hits | http://www.gabrielrobichaud.com/xyz | | Xyz is not a directory, it never will be nor is it a file.I | would like to catch that xyz, put it invariable and then do | some funky treatment. | BUT, what I am getting currently is: The page cannot be | found error message. | | How can I get this xyz value and put it in a variable? | Any leads would be really appreciated!!! | Gabriel | | | | | [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Cf puzzle
Ok.. thanks. I will do searching for mod_rewrite.I had no idea what I'm trying to do was called that.I really want to avoid using the 404 handler if possible. If anyone else has done this before i would love to hear how it got done. Gabriel Hi, Try doing some searches on the houseoffusion archives and/or the almighty google: If you are using apache, just search for mod_rewrite for you are using IIS, search for IIS and mod_rewrite Another option is this: http://www.spike.org.uk/go/friendly-urls An additional one (dirty hack) would be to use the 404 error handler. /Hugo [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Cf puzzle
Custom error page through your web server to point to a CFM that evaluates the URL string and strips out what you want into variables. #cgi# scope will help a lot. John Burns -Original Message- From: Gabriel Robichaud [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 10:13 AM To: CF-Talk Subject: Cf puzzle Ok folks! I have a directory... c:/cfusionmx/wwwroot/somedir/ That has Application.cfm and index.cfm files. Now... that being said.Lets assume that in order to hit the index.cfm I need to type in the browser http://www.gabrielrobichaud.com/ Now what I would like to do, is catch these types of hits http://www.gabrielrobichaud.com/xyz Xyz is not a directory, it never will be nor is it a file.I would like to catch that xyz, put it invariable and then do some funky treatment. BUT, what I am getting currently is: The page cannot be found error message. How can I get this xyz value and put it in a variable? Any leads would be really appreciated!!! Gabriel [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Cf puzzle
If you are using IIS check out a thread from earlier today http://www.houseoffusion.com/cf_lists/index.cfm/method=messagesthreadid=31591forumid=4 Mark A. Kruger, MCSE, CFG www.cfwebtools.com www.necfug.com http://blog.mxconsulting.com ...what the web can be! -Original Message- From: Gabriel Robichaud [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 9:13 AM To: CF-Talk Subject: Cf puzzle Ok folks! I have a directory... c:/cfusionmx/wwwroot/somedir/ That has Application.cfm and index.cfm files. Now... that being said.Lets assume that in order to hit the index.cfm I need to type in the browser http://www.gabrielrobichaud.com/ Now what I would like to do, is catch these types of hits http://www.gabrielrobichaud.com/xyz Xyz is not a directory, it never will be nor is it a file.I would like to catch that xyz, put it invariable and then do some funky treatment. BUT, what I am getting currently is: The page cannot be found error message. How can I get this xyz value and put it in a variable? Any leads would be really appreciated!!! Gabriel [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Cf puzzle
The only thing is that this is not an error.And I want to make this part of the functionality of the site.So I am concerned that using the error page like this might put a strain on performance.Or am I worrying about nothing? Custom error page through your web server to point to a CFM that evaluates the URL string and strips out what you want into variables. #cgi# scope will help a lot. John Burns -Original Message- From: Gabriel Robichaud [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 10:13 AM To: CF-Talk Subject: Cf puzzle Ok folks! I have a directory... c:/cfusionmx/wwwroot/somedir/ That has Application.cfm and index.cfm files. Now... that being said.Lets assume that in order to hit the index.cfm I need to type in the browser http://www.gabrielrobichaud.com/ Now what I would like to do, is catch these types of hits http://www.gabrielrobichaud.com/xyz Xyz is not a directory, it never will be nor is it a file.I would like to catch that xyz, put it invariable and then do some funky treatment. BUT, what I am getting currently is: The page cannot be found error message. How can I get this xyz value and put it in a variable? Any leads would be really appreciated!!! Gabriel [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Cf puzzle
I really want to avoid using the 404 handler if possible. I don'it think it is possible. The CF server will not even be aware of such a request which will never be forwarded by the HTTP server to the CF server. Since the HTTP request IS a 404 error, I don't see how this could be done not using the 404 handler. -- ___ See some cool custom tags here: http://www.contentbox.com/claude/customtags/tagstore.cfm Please send any spam to this address: [EMAIL PROTECTED] Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Cf puzzle
Can you back up and embellish on what it is that you are trying to do exactly?Maybe there is a better way that the listees can help with. Ray At 09:37 AM 3/31/2004, Gabriel Robichaud wrote: The only thing is that this is not an error.And I want to make this part of the functionality of the site.So I am concerned that using the error page like this might put a strain on performance.Or am I worrying about nothing? Custom error page through your web server to point to a CFM that evaluates the URL string and strips out what you want into variables. #cgi# scope will help a lot. John Burns -Original Message- From: Gabriel Robichaud [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 10:13 AM To: CF-Talk Subject: Cf puzzle Ok folks! I have a directory... c:/cfusionmx/wwwroot/somedir/ That has Application.cfm and index.cfm files. Now... that being said.Lets assume that in order to hit the index.cfm I need to type in the browser http://www.gabrielrobichaud.com/ Now what I would like to do, is catch these types of hits http://www.gabrielrobichaud.com/xyz Xyz is not a directory, it never will be nor is it a file.I would like to catch that xyz, put it invariable and then do some funky treatment. BUT, what I am getting currently is: The page cannot be found error message. How can I get this xyz value and put it in a variable? Any leads would be really appreciated!!! Gabriel [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Cf puzzle
If you are using apache, just search for mod_rewrite for you are using IIS, search for IIS and mod_rewrite Ok.. it seems that this would be perfect for what I want to do. But where the heck am i going to find hosting that is going to let me write my own mod_rewrite rules? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Cf puzzle
I don'it think it is possible. The CF server will not even be aware of such a request which will never be forwarded by the HTTP server to the CF server. Since the HTTP request IS a 404 error, I don't see how this could be done not using the 404 handler. Well, using a mod_rewrite like isapirewrite.com will let me change that url around before it gets sent to cf.But that opens up a whole other problem... Like who is going to host this thing? I would consider hosting it myself.. but I dont think thats a very good idea. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Cf puzzle
404 is probably your most viable solution unless you are hosting your server or have full control over a dedicated server. John Burns -Original Message- From: Gabriel Robichaud [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 9:45 AM To: CF-Talk Subject: Re: Cf puzzle I don'it think it is possible. The CF server will not even be aware of such a request which will never be forwarded by the HTTP server to the CF server. Since the HTTP request IS a 404 error, I don't see how this could be done not using the 404 handler. Well, using a mod_rewrite like isapirewrite.com will let me change that url around before it gets sent to cf.But that opens up a whole other problem... Like who is going to host this thing? I would consider hosting it myself.. but I dont think thats a very good idea. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Cf puzzle
Can you back up and embellish on what it is that you are trying to do exactly?Maybe there is a better way that the listees can help with. Ray At 09:37 AM 3/31/2004, Gabriel Robichaud wrote: Its pretty simple.I want to capture anything that comes after mydomain.com/so if mydomain.com/xyz is typed in the browser, all i want to do is be able to assign the xyz into a cf variable and then use that information to retreive stuff from my database. The problem lies with capturing the xyz. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Cf puzzle
Wouldn't SES urls work?I have never used them and don't really know what they are, but other people on the list talk about passing params that way.Am I way off here? John -Original Message- From: Gabriel Robichaud [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 9:48 AM To: CF-Talk Subject: Re: Cf puzzle Can you back up and embellish on what it is that you are trying to do exactly?Maybe there is a better way that the listees can help with. Ray At 09:37 AM 3/31/2004, Gabriel Robichaud wrote: Its pretty simple.I want to capture anything that comes after mydomain.com/so if mydomain.com/xyz is typed in the browser, all i want to do is be able to assign the xyz into a cf variable and then use that information to retreive stuff from my database. The problem lies with capturing the xyz. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Cf puzzle
hmm.. dont know how i missed that. Will keep an eye out on this one. Thanks Gabriel If you are using IIS check out a thread from earlier today http://www.houseoffusion.com/cf_lists/index. cfm/method=messagesthreadid=31591forumid=4 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Cf puzzle
Hmmm... I have no idea what those are.Must investigate. Gabriel Wouldn't SES urls work?I have never used them and don't really know what they are, but other people on the list talk about passing params that way.Am I way off here? John -Original Message- From: Gabriel Robichaud [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 9:48 AM To: CF-Talk Subject: Re: Cf puzzle Its pretty simple.I want to capture anything that comes after mydomain.com/so if mydomain.com/xyz is typed in the browser, all i want to do is be able to assign the xyz into a cf variable and then use that information to retreive stuff from my database. The problem lies with capturing the xyz. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Cf puzzle
The problem lies with capturing the xyz Ok, fine, but where does this xyz come from ? Typed in by the user? For what purpose? -- ___ See some cool custom tags here: http://www.contentbox.com/claude/customtags/tagstore.cfm Please send any spam to this address: [EMAIL PROTECTED] Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Cf puzzle
Yes its typed in by the user.or a click somewhere on the internet. The problem lies with capturing the xyz Ok, fine, but where does this xyz come from ? Typed in by the user? For what purpose? -- ___ See some cool custom tags here: http://www.contentbox.com/claude/customtags/tagstore.cfm Please send any spam to this address: [EMAIL PROTECTED] Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Cf puzzle
Gabriel, The web server already has to parse the header, determine if the file exists and point to the file (or 404 handler) - yes I would imagine that there is a bit more overhead than if the file/folder existed in the first place - but I have several sites doing this and similar things, some of them trafficked quite heavily, and I've never noticed an appreciable difference.Obviously a lot depends on the expected load.I would also say that a dedicated IP address (rather than a virtual host) would make a slight difference because the web server wouldn't have the additional task of finding the right site for that Host header before it even looks for a file. But again, I don't know that you would notice the difference except under a near capacity load. -Mark -Original Message- From: Gabriel Robichaud [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 8:37 AM To: CF-Talk Subject: Re: Cf puzzle The only thing is that this is not an error.And I want to make this part of the functionality of the site.So I am concerned that using the error page like this might put a strain on performance.Or am I worrying about nothing? Custom error page through your web server to point to a CFM that evaluates the URL string and strips out what you want into variables. #cgi# scope will help a lot. John Burns -Original Message- From: Gabriel Robichaud [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 10:13 AM To: CF-Talk Subject: Cf puzzle Ok folks! I have a directory... c:/cfusionmx/wwwroot/somedir/ That has Application.cfm and index.cfm files. Now... that being said.Lets assume that in order to hit the index.cfm I need to type in the browser http://www.gabrielrobichaud.com/ Now what I would like to do, is catch these types of hits http://www.gabrielrobichaud.com/xyz Xyz is not a directory, it never will be nor is it a file.I would like to catch that xyz, put it invariable and then do some funky treatment. BUT, what I am getting currently is: The page cannot be found error message. How can I get this xyz value and put it in a variable? Any leads would be really appreciated!!! Gabriel [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Cf puzzle
Hey Mark, Thanks.Looks like this is the easiest solution and I dont think I need to worry too much about the overhead at this point... maybe later but I could just deal with that if it happens. Thanks everyone for your help! Gabriel Gabriel, The web server already has to parse the header, determine if the file exists and point to the file (or 404 handler) - yes I would imagine that there is a bit more overhead than if the file/folder existed in the first place - but I have several sites doing this and similar things, some of them trafficked quite heavily, and I've never noticed an appreciable difference.Obviously a lot depends on the expected load. I would also say that a dedicated IP address (rather than a virtual host) would make a slight difference because the web server wouldn't have the additional task of finding the right site for that Host header before it even looks for a file. But again, I don't know that you would notice the difference except under a near capacity load. -Mark [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Cf puzzle
Yes its typed in by the user.or a click somewhere on the internet. Ok, fine, but why do you want to register these requests? Why would vistors try thes xyz?Do they mean anything? Or do you just want to register tentatives to reach forbiden pages and directories? -- ___ See some cool custom tags here: http://www.contentbox.com/claude/customtags/tagstore.cfm Please send any spam to this address: [EMAIL PROTECTED] Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]