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:
Bannerad Demo (1998)
Hello??? (1997)
killer-format in cart (1998)
Running _every_ page through WebCat ? (1997)
re: [addlineitem] working almost (1997)
Database Upload (2000)
Log-in Scheme (2003)
Showif, Hideif reverse logic ? (1997)
F3 crashing server (1997)
Assign Variable Value (1998)
List of WebDNA users - Show of Hands (2002)
[WebDNA] Ubuntu 14.04 & WebDNA (2017)
Secure server question (1997)
WebCommerce: Folder organization ? (1997)
HELP WITH DATES (1997)
Starting Emailer (2005)
random within a specified range (2001)
Possible Bug in 2.0b15.acgi (1997)
Writing a Protect Tag (1999)
Trouble with adding multiple items to cart (1999)