Re: Cleaner URLs
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 50317
interpreted = N
texte = You can set the Apache error directive per virtual host or global:ErrorDocument 404 /error.htmlBut be careful of getting the Apache/WebDNA server caught in a loop ..FYI - Apache 1 had exactly the same behavior.Alain> One thing I'm noticing under Apache 2 using the errormessages.db method> is that Apache seems to grab the 404 from WebCat if the directory of> the virtual/phantom file does not exist. In other words, if a> directory store exists and the request is /store/some.tpl then the> errormessages.db is deployed. But if directory store does not exist,> then Apache steps in and shows the Apache error.html file. Any way> around this? Maybe a tweak of the httpd.conf? I'd like to have> phantom directories as well, as they can be used as data tokens in the> URL.> > Mike> > On Thursday, May 8, 2003, at 04:55 PM, Alain Russell wrote:> >> It's a mix of a modified errormessages.db and an interpret.inc file>> inside>> each virtual host that we want to use static urls in ..>> >> Heres the logic:>> >> Page request comes in for a page /testing.html>> Page does not exist so the errormessages.db is employed.>> Templatenotfound error checks to see if an interpret.inc file exists>> If yes>> Split the url relevant to the interpret.inc - eg testing>> Search the db for a page with friendly name testing>> If Found>> Display page>> Set error flag to no>> If not Found>> check if error.html exists and redirect or set error flag>> to yes>> If No>> check if error.html exists & redirect or set error flag to yes>> Display error if error flag is set to yes>> >> This can be modified for just about any database/need products/recipes>> etc>> which a small change to the interpret.inc file in each virtual host.>> >> It adds about 2-3 60ths of a second to the pages processing this way>> but the>> search engine friendly urls are well worth it ion our view ..>> >> I suppose I could share the code if anyone is interested ..>> >> Alain>> >> >> >>> Alain,>>> >>> I'll bite...>>> >>> How did you do that dynamically?>>> >>> >>> >>> On 5/8/03 3:07 PM, Alain Russell
>>> wrote:>>> >>>> Clint - check out these sites:>>>> >>>> http://www.ecook.co.nz>>>> http://www.radfords.co.nz>>>> >>>> These are using a content management system and webdna only to>>>> generate>>>> these url's - no Apache modules etc ..>>>> >>>> Let me know if you want me to share ..>>> >>> --------------------------------------------------------------------->>> Clint Davis>>> Webmaster / Interactive Media Specialist>>> Gray Loon Marketing Group, Inc. http://www.grayloon.com>>> 204 Main Street | Evansville, IN 47708 | Phone:812-422-9999>>> --------------------------------------------------------------------->>> >>> >>> ------------------------------------------------------------->>> 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/-------------------------------------------------------------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:
You can set the Apache error directive per virtual host or global:ErrorDocument 404 /error.htmlBut be careful of getting the Apache/WebDNA server caught in a loop ..FYI - Apache 1 had exactly the same behavior.Alain> One thing I'm noticing under Apache 2 using the errormessages.db method> is that Apache seems to grab the 404 from WebCat if the directory of> the virtual/phantom file does not exist. In other words, if a> directory store exists and the request is /store/some.tpl then the> errormessages.db is deployed. But if directory store does not exist,> then Apache steps in and shows the Apache error.html file. Any way> around this? Maybe a tweak of the httpd.conf? I'd like to have> phantom directories as well, as they can be used as data tokens in the> URL.> > Mike> > On Thursday, May 8, 2003, at 04:55 PM, Alain Russell wrote:> >> It's a mix of a modified errormessages.db and an interpret.inc file>> inside>> each virtual host that we want to use static urls in ..>> >> Heres the logic:>> >> Page request comes in for a page /testing.html>> Page does not exist so the errormessages.db is employed.>> Templatenotfound error checks to see if an interpret.inc file exists>> If yes>> Split the url relevant to the interpret.inc - eg testing>> Search the db for a page with friendly name testing>> If Found>> Display page>> Set error flag to no>> If not Found>> check if error.html exists and redirect or set error flag>> to yes>> If No>> check if error.html exists & redirect or set error flag to yes>> Display error if error flag is set to yes>> >> This can be modified for just about any database/need products/recipes>> etc>> which a small change to the interpret.inc file in each virtual host.>> >> It adds about 2-3 60ths of a second to the pages processing this way>> but the>> search engine friendly urls are well worth it ion our view ..>> >> I suppose I could share the code if anyone is interested ..>> >> Alain>> >> >> >>> Alain,>>> >>> I'll bite...>>> >>> How did you do that dynamically?>>> >>> >>> >>> On 5/8/03 3:07 PM, Alain Russell >>> wrote:>>> >>>> Clint - check out these sites:>>>> >>>> http://www.ecook.co.nz>>>> http://www.radfords.co.nz>>>> >>>> These are using a content management system and webdna only to>>>> generate>>>> these url's - no Apache modules etc ..>>>> >>>> Let me know if you want me to share ..>>> >>> --------------------------------------------------------------------->>> Clint Davis>>> Webmaster / Interactive Media Specialist>>> Gray Loon Marketing Group, Inc. http://www.grayloon.com>>> 204 Main Street | Evansville, IN 47708 | Phone:812-422-9999>>> --------------------------------------------------------------------->>> >>> >>> ------------------------------------------------------------->>> 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/-------------------------------------------------------------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/
Alain Russell
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:
Emailer setup (1997)
Waitfor file (2000)
[WebDNA] webdna.us is blocked by Lightspeed Systems (2017)
RE: E-mailer error codes (1997)
Format question WC Mac f3 (1997)
Generating Report Totals (1997)
Using "/" for path to virtual host root ? (2003)
Questions To Answer (1997)
Nav. 4 probs with cart (1997)
Not really WebCat (1997)
Can Web Cat Do this? - LOOK (2000)
Funny Submissions From a Form Page (1999)
[BULK] [WebDNA] PayPal Integration (2017)
form data submission gets truncated (1997)
Re:2nd WebCatalog2 Feature Request (1996)
RE: Questions To Answer (1997)
Next (1997)
Multiply prices (1997)
Unix DB Permission Error (2002)
[math] oddness .. (2002)