Re: Cleaner URLs

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50314
interpreted = N
texte = 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.MikeOn 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/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Cleaner URLs (Velma Kahn 2003)
  2. Re: Cleaner URLs (Alain Russell 2003)
  3. Re: Cleaner URLs (Michael Davis 2003)
  4. Re: Cleaner URLs (Alain Russell 2003)
  5. Re: Cleaner URLs (Clint Davis 2003)
  6. Re: Cleaner URLs (Alain Russell 2003)
  7. Re: Cleaner URLs (Glenn Busbin 2003)
  8. Cleaner URLs (Clint Davis 2003)
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.MikeOn 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/ Michael Davis

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:

Suppressing returns (2000) [WebDNA] Cookies & localhost (2008) Part Html part WebDNA (1997) Browser Reloads and AddlineItem (1997) WordBreak Qestion (part 2) (1998) ISAPI WC6a and Windows 2003 Web Edition (2006) Bad match! (2002) How to Display text in empty fields (1997) Can WebDNA do this? (2000) Summing fields (1997) requiring form fields? (2000) Weird problems with [SHOWIF]s (1997) WebCat Admin access w/ClearlyHome p.i. (1997) WebCatalog and WebMerchant reviewed by InfoWorld (1997) RE: WebDNA-Talk searchable? (1997) WebCatalog2 Feature Feedback (1996) Weird bug, or is there something amiss? (1997) WebCat2: Found Items syntax, etc. (1997) test (2002) text conversions (1999)