Gossamer Forum
Home : Products : DBMan SQL : Development, Plugins and Globals :

Re: [hennagaijin] search engine friendly db content

Quote Reply
Re: [hennagaijin] search engine friendly db content In reply to
As it turns out, these rules don't quite cut the mustard, because there remains the problem of the speedbar on multiple-page search results. I solved that by writing a template global called <%speedbar_static%> that uses several regex replacement instructions to replace everything up to and including "nh=" with a single "/". That way, the speedbar link to page 7 will look like http://www.mysite.com/widgets/all-widgets/7. Then you just need a new rewrite rule that rewrites those static urls from blahblahblah/widgets/all-widgets/(.*) to blahblahblah/db.cgi?...nh=$1.

A couple of implications...

1. The main list all page now needs to reside at http://www.mysite.com/widgets/all-widgets/1
2. Be careful to make sure you do enough regex replacements in speedbar_static to catch not only the dynamic urls to the numbered pages, but also the [<<]-style jump-to links (this one tripped me up at first).
3. It's obviously possible with a few more rewrite rules to set up "list all" results pages for numerous different search parameters on multiple tables. With a little tinkering, I've now got this working on three different tables with 12 different search parameters. =)

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund
Subject Author Views Date
Thread search engine friendly db content hennagaijin 3799 Oct 3, 2002, 3:59 AM
Post Re: [hennagaijin] search engine friendly db content
hennagaijin 3556 Nov 7, 2002, 4:39 AM