Hallo Julian,
ich habe das zwar alles gemacht, aber ich glaube nicht, dass es dir was bringen würde, wenn ich dir meine Dateien schicken würde. Zumal da noch einige andere Anpassungen enthalten sind, die dich noch mehr verwirren würden.
Hier noch als Anregung ein paar Anpassungen von mir, aber ohne Gewähr auf Vollständigkeit und Richtigkeit:
in der index.php:
Suche:
CODE $category_url = $dir.'index.php?c='.$parent_categories[$x]["id"];
(dies auch in der add_url.php ersetzen)
Ersetze mit:
CODE $kategorie = preg_replace( '( )', '_', $parent_categories[$x]["name"]);
$category_url = $dir.$kategorie.'-'.$parent_categories[$x]["id"] .'.html';
Suche:
CODE $replace = array("[CATEGORY_NAME]" => $subcategories[$x]["name"], "[CATEGORY_URL]" => $dir.'index.php?c='.$subcategories[$x]["id"]);
Ersetze mit:
CODE $kategorie = preg_replace( '( )', '_', $subcategories[$x]["name"]);
$replace = array("[CATEGORY_NAME]" => $subcategories[$x]["name"], "[CATEGORY_URL]" => $dir.$kategorie.'-'.$subcategories[$x]["id"] .'.html' );
hier noch die Pagination-Anpassung:
CODE function pagination($text, $s)
{
global $c, $dir;
$kategorie = preg_replace( '( )', '_', $text);
if ($c != 1) { $query = $kategorie.'-'.$c.'.html'; };
if (($c != 1) & $s != 1)
{
$query = $kategorie.'-'.$c.'-'.$s.'.html';
}
elseif ($s != 1)
{
$query = $kategorie.'-'.$c.'-'.$s.'.html';
};
return $query;
};
in der .htaccess:
CODE
RewriteRule ^(.*)-([0-9]*)-([0-9]*).html$ index.php?c=$2&s=$3 [L,NC]
RewriteRule ^(.*)-([0-9]*).html$ index.php?c=$2 [L,NC]
Hoffe das hilft dir erstmal...