Re: WebDNA to Apache RewriteMap
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 61809
interpreted = N
texte = >Here's the problem. WebDNA has a redirect command. That command uses a 30=2>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 m=ay>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=3Dhttp://www.domain.com/index.htm&statuscode=3D301]>>Is there any chance of that?[RETURNRAW] is your friend.[ReturnRaw]HTTP/1.0 301 Permanently removedStatus: 301[/ReturnRaw]-- ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Id=E9er AB SE-200 39 Malmo Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se-------------------------------------------------------------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 30=2>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 m=ay>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=3Dhttp://www.domain.com/index.htm&statuscode=3D301]>>Is there any chance of that?[returnraw] is your friend.[returnraw]HTTP/1.0 301 Permanently removedStatus: 301[/ReturnRaw]-- ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Id=E9er AB SE-200 39 Malmo Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se-------------------------------------------------------------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/
Christer Olsson
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:
Searching multiple fields (1997)
WebCat2 - Getting to the browser's username/password data (1997)
New public beta available (1997)
Search Command, multiple dbs, etc. (2000)
uninstalling webcatalog (2000)
trouble updating records in database (1998)
Chat Area (2000)
Reversing [ipaddress] normalization (1998)
DB Emergency (2002)
Not really WebCat (1997)
PCS Frames (1997)
Exclamation point (1997)
Multi vendor shop (2000)
(1997)
[ShowNext] (1997)
Bug or syntax error on my part? (1997)
Fun with dates (1997)
SiteEdit NewFile.html ? (1997)
WebCatalog2 Feature Feedback (1996)
Req: Row DB feature (2004)