Re: urls
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 63481
interpreted = N
texte = > it looks like there are less people on this list each time i come back to it...Yeah, it looks like WebDNA finally lost the war of hearts and minds to php... > just curious.. has somebody played with mod_rewrite to make urls more> 'search engine friendly' or just to hide stuff...I haven't used mod_rewrite, but I've modified WebDNA's errormessages.db to do the same thing... I make my 'friendly' URLs look like this (you could alter the URL & code, of course, to fit your needs):http://www.thewebsite.com/maincategory-123456.htmlChange the 'TemplateNotFound' error in errormessages.db to:-----------------------------------------------[showif [fileinfo file=interpret.inc][exists][/fileinfo]=T][text]show_error=F[/text][text]hide_error_redirect=F[/text][include file=interpret.inc][/showif][hideif [hide_error_redirect]=T][showif [fileinfo file=error.html][exists][/fileinfo]=T][redirect error.html][/showif][/hideif][hideif [show_error]=F]Error: template '[param1]' not found[/hideif]^^ no linebreaks or unneccessary spaces ^^-----------------------------------------------"error.html" can be your custom 404 page if you want that, if not, no worries, 'Error: template '[param1]' not found' will be displayed instead.----------------------interpret.inc----------------------[!]--Friendly URL structure looks like this:http://www.thewebsite.com/maincategory-123456.html --[/!][text]page_to_find=[middle startafter=-&endbefore=.][thisurl][/middle][/text][search db=maincategory.db&eqCATEGORY_IDdata=[page_to_find]] [founditems] [text]write_error=F[/text] [text]show_my404=F[/text] [include file=category.html&CATEGORY_ID=[page_to_find]][!]-- ^^ category.html is a 'container page' that displays vars from category .db --[/!] [/founditems] [showif [numfound]=0] [text]show_my404=T[/text] [/showif][/search][!]--my404, if triggered, sends a 'true 404' to the browser, so search engines know for sure what's up--[/!][hideif [show_my404]=F][text]show_error=F[/text][ReturnRaw]HTTP/1.1 404 Object Not FoundStatus: 404Server: Apache/1.3.19 (iTools/MacOSX) mod_ssl/2.8.1 OpenSSL/0.9.5a PHP/4.0.4pl1 mod_perConnection: CloseMIME-Version: 1.0Content-Type: text/htmlError 404 Object Not Found[/ReturnRaw][/hideif]----------------------I have this in action big time at http://www.searchboise.com , and thanks to Alain and team back in the day (before they went to the php darkside) for the help with it.HTH-Dan-------------------------------------------------------------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:
> it looks like there are less people on this list each time i come back to it...Yeah, it looks like WebDNA finally lost the war of hearts and minds to php... > just curious.. has somebody played with mod_rewrite to make urls more> 'search engine friendly' or just to hide stuff...I haven't used mod_rewrite, but I've modified WebDNA's errormessages.db to do the same thing... I make my 'friendly' URLs look like this (you could alter the URL & code, of course, to fit your needs):http://www.thewebsite.com/maincategory-123456.htmlChange the 'TemplateNotFound' error in errormessages.db to:-----------------------------------------------[showif [fileinfo file=interpret.inc][exists][/fileinfo]=T][text]show_error=F[/text][text]hide_error_redirect=F[/text][include file=interpret.inc][/showif][hideif [hide_error_redirect]=T][showif [fileinfo file=error.html][exists][/fileinfo]=T][redirect error.html][/showif][/hideif][hideif [show_error]=F]Error: template '[param1]' not found[/hideif]^^ no linebreaks or unneccessary spaces ^^-----------------------------------------------"error.html" can be your custom 404 page if you want that, if not, no worries, 'Error: template '[param1]' not found' will be displayed instead.----------------------interpret.inc----------------------[!]--Friendly URL structure looks like this:http://www.thewebsite.com/maincategory-123456.html --[/!][text]page_to_find=[middle startafter=-&endbefore=.][thisurl][/middle][/text][search db=maincategory.db&eqCATEGORY_IDdata=[page_to_find]] [founditems] [text]write_error=F[/text] [text]show_my404=F[/text] [include file=category.html&CATEGORY_ID=[page_to_find]][!]-- ^^ category.html is a 'container page' that displays vars from category .db --[/!] [/founditems] [showif [numfound]=0] [text]show_my404=T[/text] [/showif][/search][!]--my404, if triggered, sends a 'true 404' to the browser, so search engines know for sure what's up--[/!][hideif [show_my404]=F][text]show_error=F[/text][returnraw]HTTP/1.1 404 Object Not FoundStatus: 404Server: Apache/1.3.19 (iTools/MacOSX) mod_ssl/2.8.1 OpenSSL/0.9.5a PHP/4.0.4pl1 mod_perConnection: CloseMIME-Version: 1.0Content-Type: text/htmlError 404 Object Not Found[/ReturnRaw][/hideif]----------------------I have this in action big time at http://www.searchboise.com , and thanks to Alain and team back in the day (before they went to the php darkside) for the help with it.HTH-Dan-------------------------------------------------------------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/
"Dan Strong"
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:
wo search help (1999)
Sorting by date (1997)
Help! WebCat2 bug (Ben's input) (1997)
Dummy Form Variables Needed (2000)
Cart -> Date and Time (2004)
Search inside Include (1998)
[ot] table gap help?!? (2001)
WebCatalog for guestbook ? (1997)
Replace context (1998)
WebCat2b13MacPlugIn - More limits on [include] (1997)
WebCat2 Append problem (B14Macacgi) (1997)
Searching multiple Databases (1997)
Unexpected error (1997)
Emailer (1997)
[WebDNA] I'm stuck... :-( (2009)
[OT] - Credit card processing company fees (2004)
WebMerchant? (1998)
Shell traceroute (2001)
Using "/" for path to virtual host root ? (2003)
MacActivity and PCS (1997)