Re: urls
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 63483
interpreted = N
texte = thank you both... i though microsoft was the (very) dark side... stilldo....>> 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.html>> Change 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 Found> Status: 404> Server: Apache/1.3.19 (iTools/MacOSX) mod_ssl/2.8.1 OpenSSL/0.9.5a> PHP/4.0.4pl1 mod_per> Connection: Close> MIME-Version: 1.0> Content-Type: text/html>> Error 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/>-- -------------------------------------------------------------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:
thank you both... i though microsoft was the (very) dark side... stilldo....>> 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.html>> Change 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 Found> Status: 404> Server: Apache/1.3.19 (iTools/MacOSX) mod_ssl/2.8.1 OpenSSL/0.9.5a> PHP/4.0.4pl1 mod_per> Connection: Close> MIME-Version: 1.0> Content-Type: text/html>> Error 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/>-- -------------------------------------------------------------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/
"kalin mintchev"
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:
Alias Problem (2002)
Moment of Thanks (1997)
Memory Error message (1998)
Locking up with WebCatalog... (1997)
math on date? (1997)
Exclamation point (1997)
WebMerchant when CC network is down (1998)
[OT] (waaaay OT) (2004)
WebCat b15 Mac plug-in (1997)
Credit card types (1997)
WebCat2 - Getting to the browser's username/password data (1997)
Webcatalog, Webstar and Crasharama (1999)
Apple event reply error (-1) (1997)
Problems appending to database (1997)
[WebDNA] php -> WebDNA: Can I do this with [tcpconnect]? (2013)
customizing the color of user's pages (1997)
webcat NT (1998)
WebCat2: Formulas.db question (1997)
[searchString] (1997)
Secure server question (1997)