Bonjour,
Comme mon site a été cité (quel honneur, merci !!), je donne la clef pour ces histoires de lastupby, mais ça régle pas tout ...
A modifier dans codebase.php comme suit
/**
* Convert urls to search-engine friendly (SEF) urls
*/
function sef_urls_convert(&$html) {
// Rewrite index.php?cat=[category]&page=[page] URLs to index-[category]-page-[page].html
$html = preg_replace('/index\.php\?cat=([0-9]+)(\&|\&)page=([0-9]+)/i','index-$1-page-$3.html',$html);
// Rewrite index.php?cat=[category] URLs to index-[category].html
$html = preg_replace('/index\.php\?cat=([0-9]+)/i','index-$1.html',$html);
// Rewrite thumbnails.php?album=[album]&uid=[category] URLs to thumbnails-[album]-by-[page].html
$html = preg_replace('/thumbnails\.php\?album=([a-z0-9]+)(\&|\&)cat=([0-9]+)(\&|\&)uid=([0-9]+)(\&|\&)page=([0-9]+)/i','thumbnails-$1-$3-$5-pg-$7.html',$html);
// Rewrite thumbnails.php?album=[album]&cat=[category]&page=[category] URLs to thumbnails-[album]-[category]-page-[page].html
$html = preg_replace('/thumbnails\.php\?album=([a-z0-9]+)(\&|\&)cat=([\-0-9]+)(\&|\&)page=([0-9]+)/i','thumbnails-$1-$3-page-$5.html',$html);
// Rewrite thumbnails.php?album=[album]&cat=[category] URLs to thumbnails-[album]-[category].html
$html = preg_replace('/thumbnails\.php\?album=([a-z0-9]+)(\&|\&)cat=([\-0-9]+)/i','thumbnails-$1-$3.html',$html);
// Rewrite thumbnails.php?album=[album]&page=[category] URLs to thumbnails-[album]-page-[page].html
$html = preg_replace('/thumbnails\.php\?album=([a-z0-9]+)(\&|\&)page=([0-9]+)/i','thumbnails-$1-page-$3.html',$html);
// Rewrite thumbnails.php?album=[album]&uid=[category] URLs to thumbnails-[album]-by-[page].html
$html = preg_replace('/thumbnails\.php\?album=([a-z0-9]+)(\&|\&)uid=([0-9]+)/i','thumbnails-$1-by-$3.html',$html);
// Rewrite thumbnails.php?album=search&search=[searchterm] URLs to thumbnails-search-[searchterm].html
$html = preg_replace('/thumbnails\.php\?album=search(\&|\&)search=([^"]+)/i','thumbnails-search-$2.html',$html);
// Rewrite thumbnails.php?album=[album] URLs to thumbnails-[album].html
$html = preg_replace('/thumbnails\.php\?album=([a-z0-9]+)/i','thumbnails-$1.html',$html);
// Rewrite displayimage.php?album=[album]&cat=[category]&pos=[position]&uid= URLs to displayimage-[album]-[category]-[position]-uid.html
$html = preg_replace('/displayimage\.php\?album=([a-z0-9]+)(\&|\&)cat=([\-0-9]+)(\&|\&)pos=([\-0-9]+)(\&|\&)uid=([\-0-9]+)/i','displayimage-$1-$3-$5-$7.html',$html);
// Rewrite displayimage.php?album=[album]&cat=[category]&pos=[position] URLs to displayimage-[album]-[category]-[position].html
$html = preg_replace('/displayimage\.php\?album=([a-z0-9]+)(\&|\&)cat=([\-0-9]+)(\&|\&)pos=([\-0-9]+)/i','displayimage-$1-$3-$5.html',$html);
// Rewrite displayimage.php?album=[album]&pos=[position] URLs to displayimage-[album]-[position].html
$html = preg_replace('/displayimage\.php\?album=([a-z0-9]+)(\&|\&)pos=([\-0-9]+)/i','displayimage-$1-$3.html',$html);
// Rewrite displayimage.php?pos=-[pid] URLs to displayimage-[pid].html
$html = preg_replace('/displayimage\.php\?pos=-([0-9]+)/i','displayimage-$1.html',$html);
// Rewrite displayimage.php?album=[album]&pid=[pid]&slideshow=[interval] URLs to slideshow-[album]-[pid]-[interval].html
$html = preg_replace('/displayimage\.php\?album=([a-z0-9]+)(\&|\&)pid=([0-9]+)(\&|\&)slideshow=([0-9]+)/i','slideshow-$1-$3-$5.html',$html);
// Rewrite displayimage.php?album=[metaalbum]&cat=[category]&pid=[pid]&slideshow=[interval] URLs to slideshow-[album]-[category]-[pid]-[interval].html
$html = preg_replace('/displayimage\.php\?album=([a-z]+)(\&|\&)cat=([\-0-9]+)(\&|\&)pid=([0-9]+)(\&|\&)slideshow=([0-9]+)/i','slideshow-$1-$3-$5-$7.html',$html);
et dans htaccess
#RewriteBase /YOUR_COPPERMINE_ROOT
#
# Rewrite index urls
#
RewriteRule index-([0-9]*)\.html index.php?cat=$1 [NC]
RewriteRule index-([0-9]*)-page-([0-9]*)\.html index.php?cat=$1&page=$2 [NC]
#
# Rewrite thumbnail urls
#
RewriteRule thumbnails-([a-z0-9]*)-([\-]?[0-9]*)\.html thumbnails.php?album=$1&cat=$2 [NC]
RewriteRule thumbnails-([a-z0-9]*)-page-([0-9]*)\.html thumbnails.php?album=$1&page=$2 [NC]
RewriteRule thumbnails-([a-z0-9]*)-([\-]?[0-9]*)-([\-]?[0-9]*)-pg-([0-9]*)\.html thumbnails.php?album=$1&cat=$2&uid=$3&page=$4 [NC]
RewriteRule thumbnails-([a-z0-9]*)-by-([0-9]*)\.html thumbnails.php?album=$1&uid=$2 [NC]
RewriteRule thumbnails-([a-z0-9]*)-([\-]?[0-9]*)-page-([0-9]*)\.html thumbnails.php?album=$1&cat=$2&page=$3 [NC]
RewriteRule thumbnails-([0-9a-z]*)\.html thumbnails.php?album=$1 [NC]
RewriteRule thumbnails-search-(.*)\.html thumbnails.php?album=search&search=$1 [NC]
#
# Rewrite displayimage urls
#
RewriteRule displayimage-([a-z0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+)\.html displayimage.php?album=$1&cat=$2&pos=$3&uid=$4 [NC]
RewriteRule displayimage-([a-z0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+)\.html displayimage.php?album=$1&cat=$2&pos=$3 [NC]
RewriteRule displayimage-([a-z0-9]+)-([\-]?[0-9]+)\.html displayimage.php?album=$1&pos=$2 [NC]
RewriteRule displayimage-([0-9]+)\.html displayimage.php?pos=-$1 [NC]
RewriteRule slideshow-([0-9]+)-([\-]?[0-9]+)-([0-9]+)\.html displayimage.php?album=$1&pid=$2&slideshow=$3 [NC]
RewriteRule slideshow-([a-z]+)-([\-]?[0-9]+)-([0-9]+)-([0-9]+)\.html displayimage.php?album=$1&cat=$2&pid=$3&slideshow=$4 [NC]
Si cela peut servir, cordialement à tous.
Claude