Re: WebDNA equivalent for $REQUEST_URI
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 56521
interpreted = N
texte = I'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/
Associated Messages, from the most recent to the oldest:
I'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/
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:
Protect and Serve (1999)
WebCatalog2 Feature Feedback (1996)
SUBMIT buttons not working.... (2000)
RE: Webcat 2.0.1b1 bug with IE 3.01/4.0p1 (1997)
THANKS!!! ShipCosts.db and debugging (1997)
[shownext max=?] armed (1997)
WebCat2 several catalogs? (1997)
4.5 -> 6.0 Upgrade (2005)
WebCatalog2 Feature Feedback (1996)
Frames (1997)
Firewalls - What's Good? (1999)
[REPLACE] inside [FOUNDITEMS] (1998)
WebCat for Unix (1999)
NT Version on IIS 4.0 (1997)
emailer stuck (1997)
WebCat.acgi from /cgi-bin/? (1997)
item sorting (1997)
emailer (1997)
find with exceptions (1997)
Calculating multiple shipping... (1997)