Re: WebDNA equivalent for $REQUEST_URI
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 56523
interpreted = N
texte = Now that I have thought about this a little more, I recall that the trapping was error trapping. Perhaps you can use a 404 error page to return the result you're hoping to rewrite. Clearly the HOST and URL are being passed to the server. Is there a way to capture this in the rewrite rule if not WebDNA? Also, how would we pass form or URI variables on rewrite? Bill-----Original Message-----From: devaulw@onebox.comSent: Wed, 03 Mar 2004 12:53:08 -0500To:
(WebDNA Talk)Subject: Re: WebDNA equivalent for $REQUEST_URII'm not sure if [thisurl] functions the way you'd want after the rewrite. But I have seen on the list that others have used rewrite rules in the way you're intending. I think it was in the context of search engine friendly URLs. Perhaps a search in the archives might turn up some of these posts I'm remembering. Bill-----Original Message-----From: Tom Duke Sent: Wed, 3 Mar 2004 17:33:53 -0000To: (WebDNA Talk)Subject: Re: WebDNA equivalent for $REQUEST_URI> Try [thisurl]Nitai,I probably should have explained that I am trying to use a .htaccess file with 'mod_rewrite' to call in a WebDNA template which then includes files based on the string of text after the host.So the punter enters:-http://yourdomain/stuff/morestuffmy .htaccess file contains:-RewriteEngine OnRewriteRule \!.(gif¦jpg¦png¦css)$ parser.tmpland then in 'parser.tmpl' I was hoping there would be a way a of determining the string 'stuff/morestuff'Using a PHP script the predefined variable $REQUEST_URI provides this funtionality, I assumed it was getting it from a mime header or something and was hoping that WebDNA might be able to extract it also.The [thisurl] context returns the path to the WebDNA template however rather than the URL that the browser requested, so I lose the string 'stuff/morestuff'.Maybe I can't do this with WebDNA.- Tom-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Now that I have thought about this a little more, I recall that the trapping was error trapping. Perhaps you can use a 404 error page to return the result you're hoping to rewrite. Clearly the HOST and URL are being passed to the server. Is there a way to capture this in the rewrite rule if not WebDNA? Also, how would we pass form or URI variables on rewrite? Bill-----Original Message-----From: devaulw@onebox.comSent: Wed, 03 Mar 2004 12:53:08 -0500To: (WebDNA Talk)Subject: Re: WebDNA equivalent for $REQUEST_URII'm not sure if [thisurl] functions the way you'd want after the rewrite. But I have seen on the list that others have used rewrite rules in the way you're intending. I think it was in the context of search engine friendly URLs. Perhaps a search in the archives might turn up some of these posts I'm remembering. Bill-----Original Message-----From: Tom Duke Sent: Wed, 3 Mar 2004 17:33:53 -0000To: (WebDNA Talk)Subject: Re: WebDNA equivalent for $REQUEST_URI> Try [thisurl]Nitai,I probably should have explained that I am trying to use a .htaccess file with 'mod_rewrite' to call in a WebDNA template which then includes files based on the string of text after the host.So the punter enters:-http://yourdomain/stuff/morestuffmy .htaccess file contains:-RewriteEngine OnRewriteRule \!.(gif¦jpg¦png¦css)$ parser.tmpland then in 'parser.tmpl' I was hoping there would be a way a of determining the string 'stuff/morestuff'Using a PHP script the predefined variable $REQUEST_URI provides this funtionality, I assumed it was getting it from a mime header or something and was hoping that WebDNA might be able to extract it also.The [thisurl] context returns the path to the WebDNA template however rather than the URL that the browser requested, so I lose the string 'stuff/morestuff'.Maybe I can't do this with WebDNA.- Tom-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
devaulw@onebox.com
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Moment of Thanks (1997)
Cart Creation (1998)
Lost Password? (2002)
generating a space delimited file (2001)
carriage returns in data (1997)
Passing Variables.. yikes, I'm dumb (2000)
converting tabs (1997)
[WebDNA] WebDNA staging server (2008)
Mime Headers for Mail (1998)
Tech question about web dna actions (1998)
[cart] tag (2000)
Secure Server (1997)
keep W* in front applescript? (1998)
form data submission gets truncated (1997)
lookup and two records? (1997)
WebCatalog NT (1996)
Getting total number of items ordered (1997)
Nested tags count question (1997)
[WAY OFF TOPIC] anybody live in Kansas? (2003)
AddLineItem Problem (1997)