Re: [WebDNA] Pretty URLS

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106583
interpreted = N
texte = At some point, you should return a 404 status when a page is not found. I don't know if there are search engine penalties, but it is a convention to let the user know you want an object we do not have. That said, the 404 page can be detailed and provide some search tools, but I think the status should be 404. Bill On Wed, Apr 27, 2011 at 10:58 AM, Brian B. Burton wrote= : > What I think I'd like to do is tie into the page not found system, > i.e. have the server send my 404 request to instead of error.html to URLs= .tpl > > that way all pages act as they do currently BUT > for any "pretty" URL, it gets "not found" and rerouted to URLs.tpl > > and inside that file i want to do something like: (yes this is 100% wrong= , just typing outloud here) > =A0 =A0[showif [url][thispage][/url]=3D[grep]('notebook_battery/$')[/grep= ]] =A0 =A0[include file=3Dalphamfg.tpl&_CID=3D2][/showif] > =A0 =A0[showif [url][thispage][/url]=3D[grep]('('notebook_battery/(?P\w+)/$')[/grep]] =A0 =A0 [include file=3Dpickmodel&_CID=3D2&_MFG=3D[MFG]][= /showif] > =A0 =A0[showif [url][thispage][/url]=3D[grep]('('notebook_battery/(?P[^/]+)/(?P\d+).*')[/grep]] =A0 =A0[include file=3Dmodelinfo&_CID=3D2&= _MFG=3D[MFG]&_FID=3D[FID]][/showif] > > (and have a last rule that actually redirects to a 404 page...) > > I want to figure out how to use an include so that i'm specifically not r= ewriting and redirecting the URL (thus making it ugly) > > Anyone currently doing anything like this? > If I can figure out how to do it, is anyone else interested in the code? > > > > > Brian B. Burton > brian@burtons.com > > =A0 =A0 =A0 =A0 =A0 =A0=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 time is precious. waste it wisely > =A0 =A0 =A0 =A0 =A0 =A0=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > On Apr 27, 2011, at 6:22 AM, William DeVaul wrote: > >> On Tue, Apr 26, 2011 at 11:38 PM, Kenneth Grome wro= te: >>>> I'm not sure why you'd leave the humans ugly URLs. >>> >>> Because those URLs are the default URLs for WebDNA. >> >> I thought the parameterized URLs were a convention that came about in >> the early days of the Internet. =A0Seems the convention is ripe for >> change. >> >> In general, I'm for programmer convenience versus optimization for the >> computer. =A0But I'd put user convenience above the programmer's. =A0In >> some frameworks the default is "prettier" to the benefit of users and >> programmers. >> >>>> The search engines like keywords. >>> >>> They get plenty of keywords in the static pages. >> >> I think it is about quality of the keyword placement (in incoming >> links, in the domain, in the URLs, in "important" tags e.g.

). > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Pretty URLS (William DeVaul 2011)
  2. Re: [WebDNA] Pretty URLS (sgbc cebu 2011)
  3. Re: [WebDNA] Pretty URLS (Tom Duke 2011)
  4. Re: [WebDNA] Pretty URLS (William DeVaul 2011)
  5. Re: [WebDNA] Pretty URLS (Stuart Tremain 2011)
  6. Re: [WebDNA] Pretty URLS (Kenneth Grome 2011)
  7. Re: [WebDNA] Pretty URLS (Brian Fries 2011)
  8. Re: [WebDNA] Pretty URLS (Kenneth Grome 2011)
  9. Re: [WebDNA] Pretty URLS (Govinda 2011)
  10. Re: [WebDNA] Pretty URLS (Daniel Meola 2011)
  11. Re: [WebDNA] Pretty URLS ("Brian B. Burton" 2011)
  12. Re: [WebDNA] Pretty URLS (Kenneth Grome 2011)
  13. Re: [WebDNA] Pretty URLS ("Brian B. Burton" 2011)
  14. Re: [WebDNA] Pretty URLS (William DeVaul 2011)
  15. Re: [WebDNA] Pretty URLS (Kenneth Grome 2011)
  16. Re: [WebDNA] Pretty URLS (William DeVaul 2011)
  17. Re: [WebDNA] Pretty URLS (Govinda 2011)
  18. Re: [WebDNA] Pretty URLS (Kenneth Grome 2011)
  19. Re: [WebDNA] Pretty URLS (William DeVaul 2011)
  20. Re: [WebDNA] Pretty URLS (Stuart Tremain 2011)
  21. [WebDNA] Pretty URLS ("Brian B. Burton" 2011)
At some point, you should return a 404 status when a page is not found. I don't know if there are search engine penalties, but it is a convention to let the user know you want an object we do not have. That said, the 404 page can be detailed and provide some search tools, but I think the status should be 404. Bill On Wed, Apr 27, 2011 at 10:58 AM, Brian B. Burton wrote= : > What I think I'd like to do is tie into the page not found system, > i.e. have the server send my 404 request to instead of error.html to URLs= .tpl > > that way all pages act as they do currently BUT > for any "pretty" URL, it gets "not found" and rerouted to URLs.tpl > > and inside that file i want to do something like: (yes this is 100% wrong= , just typing outloud here) > =A0 =A0[showif [url][thispage][/url]=3D[grep]('notebook_battery/$')[/grep= ]] =A0 =A0[include file=3Dalphamfg.tpl&_CID=3D2][/showif] > =A0 =A0[showif [url][thispage][/url]=3D[grep]('('notebook_battery/(?P\w+)/$')[/grep]] =A0 =A0 [include file=3Dpickmodel&_CID=3D2&_MFG=3D[MFG]][= /showif] > =A0 =A0[showif [url][thispage][/url]=3D[grep]('('notebook_battery/(?P[^/]+)/(?P\d+).*')[/grep]] =A0 =A0[include file=3Dmodelinfo&_CID=3D2&= _MFG=3D[MFG]&_FID=3D[FID]][/showif] > > (and have a last rule that actually redirects to a 404 page...) > > I want to figure out how to use an include so that i'm specifically not r= ewriting and redirecting the URL (thus making it ugly) > > Anyone currently doing anything like this? > If I can figure out how to do it, is anyone else interested in the code? > > > > > Brian B. Burton > brian@burtons.com > > =A0 =A0 =A0 =A0 =A0 =A0=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 time is precious. waste it wisely > =A0 =A0 =A0 =A0 =A0 =A0=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > On Apr 27, 2011, at 6:22 AM, William DeVaul wrote: > >> On Tue, Apr 26, 2011 at 11:38 PM, Kenneth Grome wro= te: >>>> I'm not sure why you'd leave the humans ugly URLs. >>> >>> Because those URLs are the default URLs for WebDNA. >> >> I thought the parameterized URLs were a convention that came about in >> the early days of the Internet. =A0Seems the convention is ripe for >> change. >> >> In general, I'm for programmer convenience versus optimization for the >> computer. =A0But I'd put user convenience above the programmer's. =A0In >> some frameworks the default is "prettier" to the benefit of users and >> programmers. >> >>>> The search engines like keywords. >>> >>> They get plenty of keywords in the static pages. >> >> I think it is about quality of the keyword placement (in incoming >> links, in the domain, in the URLs, in "important" tags e.g.

). > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > William DeVaul

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:

4.5.1 (2003) Authenticating users without dialog box (1997) [WebDNA] How to use attachment with sendmail (2020) [WebDNA] New problem with [ShowNext] (2010) bad idea to not use any html files, only .tpl files? (1999) Credit card processing - UK (1997) exclamation mark... (1999) formula.db problem (1999) WebCat and WebTV (1997) PIXO with cometsite ... and/or other plugins (1998) LookUp Tag (1997) WebCatalog for Postcards ? (1997) Creating 404 Not Found pages (1999) looping table rows (1999) WebCat Admin access w/ClearlyHome p.i. (1997) [WebDNA] [OT] BBEdit Glossary (2012) Out of the woodwork (2007) PIXO support (1997) WebTEN vs webSTAR (1998) server2003 issue (OT) (2006)