24
Yes i felt something will be wrong, otherwise it would be too beautiful;)
http://www.kulturystyka.org.pl/modules/news/article.php?storyid=392 - redirection 301
STOP WORKS and other articles
http://www.kulturystyka.org.pl/modules/news/ - WORKS
http://www.kulturystyka.org.pl/modules/news/index.php?storytopic=34 - all categories WORKS
maybe with this redirect code is something wrong?
$checkScheme = function () {
$s = $_SERVER;
$parsed = parse_url(XOOPS_URL);
$targetScheme = $parsed['scheme'];
$currentScheme = (!empty($s['HTTPS']) && $s['HTTPS'] !== 'off') ? 'https' : 'http';
if (0 !== strcmp($targetScheme, $currentScheme)) {
$host = $parsed['host'];
$port = isset($parsed['port']) ? ':' . $parsed['port'] : '';
$fullUrl = $targetScheme . '://' . $host . $port . $s['REQUEST_URI'];
header('Location: ' . $fullUrl, true, 301);
exit();
}
};
$checkScheme();
Now i switch off this code, because i'm afraid of google position, i will wait for your help