Re: Using a database with a short url
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 33978
interpreted = N
texte = If you have a single element of the search parameters that changes (forexample ISBN), you can make it very short indeed. What I am doing is to add a section to the top of my main Index.tpl which looks for the URL form variable ISBN and does a redirect to the actual search page. Sothe link looks like this: http://www.rowmanlittlefield.com/?ISBN=0847697185and the redirect code looks like this (without linebreaks of course):[hideif [ISBN]=[raw][ISBN][/raw]][Redirect/Catalog/SingleBook.shtml?command=Search&db=../CATALOG.db&eqSKUdata=[ISBN]][/hideif]Then the page magically redirects. For an additional level of magic, I used the URL rewriting feature of my webserver (O'Reilly's WebSite) to change this: http://www.rowmanlittlefield.com/ISBN/0847697185to: http://www.rowmanlittlefield.com/?ISBN=0847697185which WebCatalog translates to:http://www.RowmanLittlefield.com/Catalog/SingleBook.shtml?command=Search&db=../CATALOG.db&eqSKUdata=0847697185Pretty slick, huh? As far as I can see, this bit of legerdamane will mean that search engines that normally choke on URL parameters will linkthese pages just fine.John PeacockJeff Logan wrote:> > I am working on a new site and I am wondering how instead of showing> a url that is 200 plus charecters long I can shorten up the url.> > This is what I have know:> http://www.forkswa.com/members/search.tpl?command=search&neSKUdata=[bl> ank]&db=forksdata.txt&categorysumm=t&ascategorysort=1&max=50> > How can I make it shorter?> > Jeff Logan>-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
If you have a single element of the search parameters that changes (forexample ISBN), you can make it very short indeed. What I am doing is to add a section to the top of my main Index.tpl which looks for the URL form variable ISBN and does a redirect to the actual search page. Sothe link looks like this: http://www.rowmanlittlefield.com/?ISBN=0847697185and the redirect code looks like this (without linebreaks of course):[hideif [ISBN]=[raw][ISBN][/raw]][Redirect/Catalog/SingleBook.shtml?command=Search&db=../CATALOG.db&eqSKUdata=[ISBN]][/hideif]Then the page magically redirects. For an additional level of magic, I used the URL rewriting feature of my webserver (O'Reilly's WebSite) to change this: http://www.rowmanlittlefield.com/ISBN/0847697185to: http://www.rowmanlittlefield.com/?ISBN=0847697185which WebCatalog translates to:http://www.RowmanLittlefield.com/Catalog/SingleBook.shtml?command=Search&db=../CATALOG.db&eqSKUdata=0847697185Pretty slick, huh? As far as I can see, this bit of legerdamane will mean that search engines that normally choke on URL parameters will linkthese pages just fine.John PeacockJeff Logan wrote:> > I am working on a new site and I am wondering how instead of showing> a url that is 200 plus charecters long I can shorten up the url.> > This is what I have know:> http://www.forkswa.com/members/search.tpl?command=search&neSKUdata=[bl> ank]&db=forksdata.txt&categorysumm=t&ascategorysort=1&max=50> > How can I make it shorter?> > Jeff Logan>-------------------------------------------------------------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://search.smithmicro.com/
John Peacock
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:
japanese characters (1997)
Interface to Quickbooks (2005)
SSL Certs (2003)
Re:Authenticate (1998)
WebCat2b15MacPlugin - showing [math] (1997)
Secure Server basic question... (1997)
WebDNA 6 (2004)
Tracking (2004)
about this server and links to who (1997)
Further tests with the infamous shipCost (1997)
Same Database needed on two machines (2002)
Purchased cart being overwritten - still !?? (1997)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
WC Database Format (1997)
Multiple Pulldowns (1997)
[WebDNA] Seriously what is wrong here? (2011)
Bug or syntax error on my part? (1997)
Off Topic - OS X web server, FTP accounts (2003)
Strange intermittent WebDNA problems (2008)
Re:Help name our technology! (1997)