I asked the following question to Dody on the "normal" forum, but nobody answered.
So, I ask this question again here. I'm ready to pay somebody to solve this problem.
Thanks for your suggestions (or solutions).
I have seen this function (line 119) in lib/pagination.class.php :
function apply_seo(&$out) {
if ($this->page_file == "browse") {
$src[] = "|\"browse.php\?pg_which=(\w*?)&cat=(\w*?)\"|m se";
$replacement[] = "\$this->apply_browse_seo('\\1', '\\2')";
}
But I can't see any URL rewriting in the URLs of the different search.php pages of my site and of your demo site.
I'd like for example get URLs looking like /foo/1, /foo/2 or /foo/3 instead of
/search.php?pg_which=1&keyword=foo
/search.php?pg_which=2&keyword=foo
or
/search.php?pg_which=3&keyword=foo
Is there a simple thing to do in your script to get "SEO" URLs when we place the mouse on the links of the different numbers of the search.php pages (like it's done with the categories and the details of the links) ?
I could create a "clone" of lib/pagination.class.php and call it only from the search.php page, but it's complicated.
I'm searching this URL rewriting of the search pages because it's better for the targeting of the Adsense ads. When it's the first time a page is presented to the Adsense bots, they look at first on the URL. When we call a second time the same page, the bots analyze the content of the whole page, but it's too late, the visitor had badly targeted ads.
So, this system could improve your script and your own sites. Just test once a search and observe the pertinence of the Adsense ads With just one good word in the URL, you have good results. But with "search.php?pg_which=1&keyword=foo" the results are anything (in fact, it's the result of the last search made by another visitor with another keyword).



