That's how I modified to use urlmethod 2 in search pagination
u can see in the bottom of
Upnews / Risultati ricerca per videogiochi
Sorry for my english!
First in .htacces replace
withCode:RewriteRule ^search/(.+)/?$ search.php?search=$1 RewriteRule ^searchurl/(.+)/?$ search.php?url=$1
because if u use the first typeCode:RewriteRule ^search/([^/]+)/?$ search.php?search=$1 RewriteRule ^searchurl/([^/]+)/?$ search.php?url=$1
is uselessCode:RewriteRule ^search/any character after like page...
Now replace
withCode:RewriteRule ^search/page/([^/]+)/search/([^/]+)/?$ search.php?page=$1&search=$2 [QSA,NC,L]
ok go to /libs/html1 and replace allCode:RewriteRule ^search/page/([^/]+)/([^/]+)/?$ search.php?page=$1&search=$2 [QSA,NC,L]
I think line 293,306,321,336,349Code:<a href="'.my_pligg_base.'/'.pagename.'.php?page='.$i.'&'.$query.'">
with
<a href="'.my_pligg_base.'/'.pagename.'/page/'.$i.'/'.$query.'">
Add in line 278
Because i use an image in input type of the search, when i do a search is returned &x=0&y=0Code:$query=preg_replace('(search=)', '', $query); //remove by giuseppe argento
ex. if i search blog return Upnews / Risultati ricerca per blog
so i added these lines, i think however good for all (line 278)
Plz say me if work for you.Code:$query=preg_replace('/x=[0-9]+/', '', $query); //remove by giuseppe argento $query=preg_replace('/y=[0-9]+/', '', $query); //remove by giuseppe argento
Now i'll try the search in urlmethod2!



Reply With Quote



