Hatte lange auch keine Lösung für das Problem gefunden.
Heute hat mich jemand mit der Nase drauf gestoßen.
Das es alle finden, SUMA Urls
Unable to determine the page link! Suchmaschinenfreundliche.
In includes/application_top.php
Suche:
Code:
$PHP_SELF = $_SERVER['PHP_SELF'];
Darunter Einfügen:
Code:
if ($PHP_SELF != $_SERVER['SCRIPT_NAME']) {
$PHP_SELF = $_SERVER['SCRIPT_NAME'].$PHP_SELF;
}
Bei 1und1 läuft es etwas anders:
In der Datei includes/application_top.php
Ersetze:
Code:
// set the HTTP GET parameters manually if search_engine_friendly_urls is enabled
if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') {
if (strlen(getenv('PATH_INFO')) > 1) {
$GET_array = array ();
$PHP_SELF = str_replace(getenv('PATH_INFO'), '', $PHP_SELF);
$vars = explode('/', substr(getenv('PATH_INFO'), 1));
for ($i = 0, $n = sizeof($vars); $i < $n; $i ++) {
if (strpos($vars[$i], '[]')) {
$GET_array[substr($vars[$i], 0, -2)][] = $vars[$i +1];
} else {
$_GET[$vars[$i]] = htmlspecialchars($vars[$i +1]);
}
$i ++;
}
if (sizeof($GET_array) > 0) {
while (list ($key, $value) = each($GET_array)) {
$_GET[$key] = htmlspecialchars($value);
}
}
}
}
Mit:
Code:
// set the HTTP GET parameters manually if search_engine_friendly_urls is enabled
if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') {
$_path_info = str_replace($_SERVER['SCRIPT_NAME'],"",$_SERVER['REQUEST_URI']);
putenv("PATH_INFO=$_path_info");
if (strlen(getenv('PATH_INFO')) > 1) {
$GET_array = array ();
$PHP_SELF = str_replace(getenv('PATH_INFO'), '', $_SERVER['SCRIPT_NAME']);
$vars = explode('/', substr(getenv('PATH_INFO'), 1));
for ($i = 0, $n = sizeof($vars); $i < $n; $i ++) {
if (strpos($vars[$i], '[]')) {
$GET_array[substr($vars[$i], 0, -2)][] = $vars[$i +1];
} else {
$_GET[$vars[$i]] = htmlspecialchars($vars[$i +1]);
}
$i ++;
}
if (sizeof($GET_array) > 0) {
while (list ($key, $value) = each($GET_array)) {
$_GET[$key] = htmlspecialchars($value);
}
}
}
}
Gruß
genndus