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 -0000 To: (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/morestuff my .htaccess file contains:- RewriteEngine On RewriteRule \!.(gif¦jpg¦png¦css)$ parser.tmpl  and 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:

    
  1. Re: WebDNA equivalent for $REQUEST_URI ( "Tom Duke" 2004)
  2. Re: WebDNA equivalent for $REQUEST_URI ( William DeVaul 2004)
  3. Re: WebDNA equivalent for $REQUEST_URI ( "Tom Duke" 2004)
  4. Re: WebDNA equivalent for $REQUEST_URI ( Glenn Busbin 2004)
  5. Re: WebDNA equivalent for $REQUEST_URI ( "Tom Duke" 2004)
  6. Re: WebDNA equivalent for $REQUEST_URI ( Brian Fries 2004)
  7. Re: WebDNA equivalent for $REQUEST_URI ( "Tom Duke" 2004)
  8. Re: WebDNA equivalent for $REQUEST_URI ( devaulw@onebox.com 2004)
  9. Re: WebDNA equivalent for $REQUEST_URI ( devaulw@onebox.com 2004)
  10. Re: WebDNA equivalent for $REQUEST_URI ( "Nitai @ ComputerOil" 2004)
  11. Re: WebDNA equivalent for $REQUEST_URI ( "Tom Duke" 2004)
  12. Re: WebDNA equivalent for $REQUEST_URI ( "Nitai @ ComputerOil" 2004)
  13. Re: WebDNA equivalent for $REQUEST_URI ( "Tom Duke" 2004)
  14. Re: WebDNA equivalent for $REQUEST_URI ( Rob Marquardt 2004)
  15. Re: WebDNA equivalent for $REQUEST_URI ( "Nitai @ ComputerOil" 2004)
  16. WebDNA equivalent for $REQUEST_URI ( "Tom Duke" 2004)
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 -0000 To: (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/morestuff my .htaccess file contains:- RewriteEngine On RewriteRule \!.(gif¦jpg¦png¦css)$ parser.tmpl  and 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)