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:
Uh...can someone help me out with the b10? (1997)
Emailer port change (1997)
DON'T UPGRADE, was 4.0.x find (2000)
Cookie Newbie (2002)
stopping/restarting service on NT? (1998)
Shared conversion under WebTen (1998)
Communigate+Webcat (2001)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
WebCat editing, SiteGuard & SiteEdit (1997)
syntax question, not in online refernce (1997)
Decrypting a user password (2000)
Email notification to one of multiple vendors ? (1997)
can WC render sites out? (1997)
OT (2001)
Sort Order on a page search (1997)
Date problems (1997)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
Searching multiple Databases (1997)
shipcost (1997)
Re:quit command on NT (1997)