Re: WebDNA to Apache RewriteMap
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 61808
interpreted = N
texte = Here's the problem. WebDNA has a redirect command. That command uses a 302 HTTP status code. The 302 code means temporarily moved. I need to use a 301/permanently moved redirect. For a variety of reasons, it is not sufficient to use 302. The way it works in Apache is to use a rewriterule directive. I can't use that since the number of rules I'd have is in the tens of thousands and I may need to do something more complicated. This means rewritemap is the better directive. Rewritemap can use a program that provides stdout from the Unix shell. Now I have to use PHP or Perl unless WebDNA can be used to provide stdout.A much simpler alternative would be the ability to specify the redirect as a 301 in the WebDNA command. For example: [redirect url=http://www.domain.com/index.htm&statuscode=301]Is there any chance of that? I don't think pre-parse won't work for me here but please let me know if I'm wrong. -----Original Message-----From: Donovan Brooke
Sent: Tue, 19 Apr 2005 07:50:21 -0500To: "WebDNA Talk" Subject: Re: WebDNA to Apache RewriteMapdevaulw@onebox.com wrote:> Any chance I can use WebDNA to act as an external rewriting > program for the Apache RewriteMap directive or should I stick to perl?> > Or, even more broadly, is there a chance WebDNA will be > usuable (now or in a future release) as a command line program/shell > scripting language for Unix? It'd be great if it could generate stdout.> > BillBill, Is "RewriteMap" the same a mod-rewrite???? If so, the new versionsof webdna has the capability of preprocessing calls... in effect, muchthe same as Mod-rewrite if you wish.Donovan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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:
Here's the problem. WebDNA has a redirect command. That command uses a 302 HTTP status code. The 302 code means temporarily moved. I need to use a 301/permanently moved redirect. For a variety of reasons, it is not sufficient to use 302. The way it works in Apache is to use a rewriterule directive. I can't use that since the number of rules I'd have is in the tens of thousands and I may need to do something more complicated. This means rewritemap is the better directive. Rewritemap can use a program that provides stdout from the Unix shell. Now I have to use PHP or Perl unless WebDNA can be used to provide stdout.A much simpler alternative would be the ability to specify the redirect as a 301 in the WebDNA command. For example: [redirect url=http://www.domain.com/index.htm&statuscode=301]Is there any chance of that? I don't think pre-parse won't work for me here but please let me know if I'm wrong. -----Original Message-----From: Donovan Brooke Sent: Tue, 19 Apr 2005 07:50:21 -0500To: "WebDNA Talk" Subject: Re: WebDNA to Apache RewriteMapdevaulw@onebox.com wrote:> Any chance I can use WebDNA to act as an external rewriting > program for the Apache RewriteMap directive or should I stick to perl?> > Or, even more broadly, is there a chance WebDNA will be > usuable (now or in a future release) as a command line program/shell > scripting language for Unix? It'd be great if it could generate stdout.> > BillBill, Is "RewriteMap" the same a mod-rewrite???? If so, the new versionsof webdna has the capability of preprocessing calls... in effect, muchthe same as Mod-rewrite if you wish.Donovan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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:
WC2b15 File Corruption (1997)
Fwd: Protect Tag and Groups (1998)
Plain Language Manual? (1998)
searching for items that begin with a number (2004)
dates and hex formatting (1997)
Download (1999)
Probably a very simple question? (1997)
[WebDNA] strange characters in db (2009)
remotely add + sign (1997)
[cart] generation (1998)
ASP and Web DNA (1998)
WebCatalog2 for NT Beta Request (1997)
Hiding URL ? (1998)
Umm...about those log files? (Off Topic) (1997)
Date Search (2004)
[WebDNA] Databases not staying open (2010)
math on date? (1997)
Introduction/Tutorial/QuickStart (1997)
Loops N Variables (1998)
Alternating colors (1997)