Re: [WebDNA] Pretty URLS
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 106578
interpreted = N
texte = FWIW: then mind the load time of that 404 controller script... if it has =to sort out (from amongst thousands+ of choices) what all vars' vals. =the given clean URLs' dir.-labels actually translate into.The only other thing that comes to mind, is: have fun! (sincere tone).Brian you'll make work whatever you decide.. I am convinced. :-) ... =and it'll be smart enough to stand up in sunlight. Coders are up =against so many reasons to feel unsure... but I often remind myself =that it is always just us people channeling our creativity into as smart =a structure as satisfy the real need, *AND* are still fun! It's easy =to forget the fun part.. and think that we are supposed to _______. =Fun also means we *own* it; we got to create something (or otherwise add =value) in the process.-G> the website in question sells replacement parts, so skus =3D couple =thousand. Things they fit into =3D couple hundred thousand. Oh, and =people google search for the thing the parts fit into. So I'd have a few =hundred thousand static pages, which although automated, is still quite =messy.=20>=20>=20> On Apr 27, 2011, at 10:13 AM, Kenneth Grome wrote:>=20>> This looks like a PITA to create and manage. I guess I've=20>> outgrown the desire to complicate things just because I can. =20>> Why not just use a daily script to generate a folder full of=20>> static pages, one for each sku, and be done with it?>>=20>> Sincerely,>> Kenneth Grome>>=20>>=20>>=20>>> 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>>>=20>>> that way all pages act as they do currently BUT>>> for any "pretty" URL, it gets "not found" and rerouted to>>> URLs.tpl>>>=20>>> and inside that file i want to do something like: (yes>>> this is 100% wrong, just typing outloud here) [showif>>> [url][thispage][/url]=3D[grep]('notebook_battery/$')[/grep>>> ]] [include file=3Dalphamfg.tpl&_CID=3D2][/showif] [showif>>> [url][thispage][/url]=3D[grep]('('notebook_battery/(?P
>>> \w+)/$')[/grep]] [include>>> file=3Dpickmodel&_CID=3D2&_MFG=3D[MFG]][/showif] [showif>>> [url][thispage][/url]=3D[grep]('('notebook_battery/(?P>>> [^/]+)/(?P\d+).*')[/grep]] [include>>> file=3Dmodelinfo&_CID=3D2&_MFG=3D[MFG]&_FID=3D[FID]][/showif]>>>=20>>> (and have a last rule that actually redirects to a 404>>> page...)>>>=20>>> I want to figure out how to use an include so that i'm>>> specifically not rewriting and redirecting the URL (thus>>> making it ugly)>>>=20>>> Anyone currently doing anything like this?>>> If I can figure out how to do it, is anyone else>>> interested in the code?>>>=20>>>=20>>>=20>>>=20>>> Brian B. Burton>>> brian@burtons.com>>>=20>>> =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>>> time is precious. waste it wisely>>> =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>>>=20- Govinda--------------Old WebDNA talklist archives:http://dev.webdna.us/TalkListArchive/index.tpl?db=3Dwebdna-talk
Associated Messages, from the most recent to the oldest:
FWIW: then mind the load time of that 404 controller script... if it has =to sort out (from amongst thousands+ of choices) what all vars' vals. =the given clean URLs' dir.-labels actually translate into.The only other thing that comes to mind, is: have fun! (sincere tone).Brian you'll make work whatever you decide.. I am convinced. :-) ... =and it'll be smart enough to stand up in sunlight. Coders are up =against so many reasons to feel unsure... but I often remind myself =that it is always just us people channeling our creativity into as smart =a structure as satisfy the real need, *AND* are still fun! It's easy =to forget the fun part.. and think that we are supposed to _______. =Fun also means we *own* it; we got to create something (or otherwise add =value) in the process.-G> the website in question sells replacement parts, so skus =3D couple =thousand. Things they fit into =3D couple hundred thousand. Oh, and =people google search for the thing the parts fit into. So I'd have a few =hundred thousand static pages, which although automated, is still quite =messy.=20>=20>=20> On Apr 27, 2011, at 10:13 AM, Kenneth Grome wrote:>=20>> This looks like a PITA to create and manage. I guess I've=20>> outgrown the desire to complicate things just because I can. =20>> Why not just use a daily script to generate a folder full of=20>> static pages, one for each sku, and be done with it?>>=20>> Sincerely,>> Kenneth Grome>>=20>>=20>>=20>>> 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>>>=20>>> that way all pages act as they do currently BUT>>> for any "pretty" URL, it gets "not found" and rerouted to>>> URLs.tpl>>>=20>>> and inside that file i want to do something like: (yes>>> this is 100% wrong, just typing outloud here) [showif>>> [url][thispage][/url]=3D[grep]('notebook_battery/$')[/grep>>> ]] [include file=3Dalphamfg.tpl&_CID=3D2][/showif] [showif>>> [url][thispage][/url]=3D[grep]('('notebook_battery/(?P>>> \w+)/$')[/grep]] [include>>> file=3Dpickmodel&_CID=3D2&_MFG=3D[MFG]][/showif] [showif>>> [url][thispage][/url]=3D[grep]('('notebook_battery/(?P>>> [^/]+)/(?P\d+).*')[/grep]] [include>>> file=3Dmodelinfo&_CID=3D2&_MFG=3D[MFG]&_FID=3D[FID]][/showif]>>>=20>>> (and have a last rule that actually redirects to a 404>>> page...)>>>=20>>> I want to figure out how to use an include so that i'm>>> specifically not rewriting and redirecting the URL (thus>>> making it ugly)>>>=20>>> Anyone currently doing anything like this?>>> If I can figure out how to do it, is anyone else>>> interested in the code?>>>=20>>>=20>>>=20>>>=20>>> Brian B. Burton>>> brian@burtons.com>>>=20>>> =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>>> time is precious. waste it wisely>>> =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>>>=20- Govinda--------------Old WebDNA talklist archives:http://dev.webdna.us/TalkListArchive/index.tpl?db=3Dwebdna-talk
Govinda
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:
Protecting webdelivery (1997)
[WebDNA] WebDNA crash and now emailer not working (2009)
Running a store on BOTH http and https (1998)
Image download problem (2001)
RSS parser in WebDNA? (2006)
[BULK] [WebDNA] AJAX module (2012)
Code database (1998)
Developer Edition - Connection Limit (2006)
Mass deletion of records (2006)
setitems, one more thing (1997)
Needed, Freelance Web Developer (2007)
File upload (2002)
[TaxableTotal] - not working with AOL and IE (1997)
RE: Deafness (1998)
Frames and WebCat (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
Re:Email Problem (1997)
Country & Ship-to address & other fields ? (1997)
Document Contains No Data! (1997)
WC 2.0 frames feature (1997)