Re: [WebDNA] Pretty URLS
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 106574
interpreted = N
texte = What I think I'd like to do is tie into the page not found system,=20i.e. have the server send my 404 request to instead of error.html to =URLs.tplthat way all pages act as they do currently BUTfor any "pretty" URL, it gets "not found" and rerouted to URLs.tpland 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](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 =rewriting 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. Burtonbrian@burtons.com =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=3DOn Apr 27, 2011, at 6:22 AM, William DeVaul wrote:> On Tue, Apr 26, 2011 at 11:38 PM, Kenneth Grome =wrote:>>> I'm not sure why you'd leave the humans ugly URLs.>>=20>> Because those URLs are the default URLs for WebDNA.>=20> I thought the parameterized URLs were a convention that came about in> the early days of the Internet. Seems the convention is ripe for> change.>=20> In general, I'm for programmer convenience versus optimization for the> computer. But I'd put user convenience above the programmer's. In> some frameworks the default is "prettier" to the benefit of users and> programmers.>=20>>> The search engines like keywords.>>=20>> They get plenty of keywords in the static pages.>=20> I think it is about quality of the keyword placement (in incoming> links, in the domain, in the URLs, in "important" tags e.g. ).
Associated Messages, from the most recent to the oldest:
What I think I'd like to do is tie into the page not found system,=20i.e. have the server send my 404 request to instead of error.html to =URLs.tplthat way all pages act as they do currently BUTfor any "pretty" URL, it gets "not found" and rerouted to URLs.tpland 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](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 =rewriting 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. Burtonbrian@burtons.com =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=3DOn Apr 27, 2011, at 6:22 AM, William DeVaul wrote:> On Tue, Apr 26, 2011 at 11:38 PM, Kenneth Grome =wrote:>>> I'm not sure why you'd leave the humans ugly URLs.>>=20>> Because those URLs are the default URLs for WebDNA.>=20> I thought the parameterized URLs were a convention that came about in> the early days of the Internet. Seems the convention is ripe for> change.>=20> In general, I'm for programmer convenience versus optimization for the> computer. But I'd put user convenience above the programmer's. In> some frameworks the default is "prettier" to the benefit of users and> programmers.>=20>>> The search engines like keywords.>>=20>> They get plenty of keywords in the static pages.>=20> I think it is about quality of the keyword placement (in incoming> links, in the domain, in the URLs, in "important" tags e.g. 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:
(1997)
Re:multiple digests, please stop (1997)
WebCatalog 2.0 & WebDNA docs in HTML ... (1997)
WebDNA tags in WebMerchant email templates ... (1997)
2 easy questions re: [showif] and [sendmail] (1997)
Running 2 two WebCatalog.acgi's (1996)
WebCatalog2 Feature Feedback (1996)
Cookie Newbie (2002)
Add message to Order (1997)
Database location (2002)
simple answer? [hideif] (1997)
Mac Lockup Problems (1998)
[WebDNA] TCPConnect example doesn't work (2017)
[WebDNA] Snippets: EXPORT RECORDS using WRITEFILE (2009)
OUTSIDE LINKS TO SHOW SHOPPING CART????????? (1998)
customers order (1999)
Formulas.db + Users.db (1997)
Size Limitation through a POST via SSL? (2005)
Why does setheader provide a db= parameter? (2005)
Multiple catalog databases and showcart (1997)