I am sorry.. i was just reviewing the list and missed your post..
I make a page called error.lasso that handles pages that don't exist. So on the error.lasso page, I parse the file response path and figure out what I needed to show them. so say I load http://www.mydomain.com/products/102493-Electric-Shaver.html On error.lasso, I grab this part of the url using: var:'x'=(response_filepath); then I parse it: var:'category' = $x->(split:'/')->(get:2); if: $category == 'products'; var:'sku'= $x->(split:'/')->(get:3)->(split:'-')->(get:1); this will give me 102493 then I do an inline to grab product sku; inline: -search, -database='mydb', -table='products', 'sku'=$sku; // get my data as I would on any dynamic page /inline; then add the custom header (so search engines don't reognize the 404 not found error) ... Hope that's a better explanation. Marc On May 5, 2005, at 8:49 PM, Nikolaj de Fine Licht wrote: > I'm afraid I would need a more verbose version of this part in order > to grasp it: > >> You don't necessarily have to have a page named that in your >> directory, >> you'll use a Lasso custom error page, parse the url and look for >> /product/ >> then parse the id number (which can be the productID in your >> database). The >> name of the product should also be in the title. Make sure to >> substitute the >> spaces with dashes. The last thing you will have to do is change the >> header >> to make google and other search engines think it's a real page. >> >> <?Lassoscript >> // LP6 thru LP8 Compatible, may work with LP5 >> header; >> 'HTTP/1.0 200 OK\r\n'; >> 'Server: Apache 1.3.2\r\n'; >> 'MIME-Version: 1.0\r\n'; >> 'Content-type: text/html\r\n'; >> /header; >> ?> > > What do you mean by having a Lasso custom error page, parse the url > and look for /product/ etc.? > > Thanks again for sharing your experience! > > Best wishes, Nikolaj > > > -- > ------------------------------ > Lasso Support: http://support.omnipilot.com/ > Search the list archives: http://www.listsearch.com/lassotalk.lasso > Manage your list subscription: > http://www.listsearch.com/lassotalk.lasso?manage -- ------------------------------ Lasso Support: http://support.omnipilot.com/ Search the list archives: http://www.listsearch.com/lassotalk.lasso Manage your list subscription: http://www.listsearch.com/lassotalk.lasso?manage |
Free forum by Nabble | Edit this page |