Article View: pl.comp.lang.php
Article #231409przekierowanie z $_SERVER["REQUEST_URI"]
From: web
Date: Thu, 21 Jul 2016 10:44
Date: Thu, 21 Jul 2016 10:44
34 lines
1743 bytes
1743 bytes
czesc
google zle zaindeksowala moja witryne
po kliknieciu w link jestem odsylany do niewlasciwej strony wraz z niewlasciwym phpsessid
probowalem zrobic przekierowanie
if($_SERVER["REQUEST_URI"] == "/?strona=cos&PHPSESSID=l9dhngrho22ser0erhffct24e6")
{
header('Location: http://mojastrona.pl');
}
ale sie wtedy serwer zapetla !!!!!!!!!!
albo cos takiego
if($_SERVER["REQUEST_URI"] == "/?strona=cos&PHPSESSID=l9dhngrho22ser0erhffct24e6")
{
$_SERVER["REQUEST_URI"] = NULL;
$strona="glowna";
}
ale nadal widoczny jest stary $_SERVER["REQUEST_URI"] czyuli ten spsob nic nie daje
pomysly???
Technical Details
Message-ID:
<122c7b18-283c-4e6c-bfe7-915c2b3644b5@googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!f6no3188833ith.0!news-out.google.com!d130ni9715ith.0!nntp.google.com!f6no3180968ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Received: by 10.66.121.229 with SMTP id ln5mr40395974pab.28.1469097871707; Thu, 21 Jul 2016 03:44:31 -0700 (PDT) X-Received: by 10.36.217.2 with SMTP id p2mr2858806itg.5.1469097871620; Thu, 21 Jul 2016 03:44:31 -0700 (PDT) Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!f6no3188833ith.0!news-out.google.com!d130ni9715ith.0!nntp.google.com!f6no3180968ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: pl.comp.lang.php Date: Thu, 21 Jul 2016 03:44:30 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=81.15.177.178; posting-account=R6oO1AoAAABfrNSrWO96fWl4VkA_YMU8 NNTP-Posting-Host: 81.15.177.178 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <122c7b18-283c-4e6c-bfe7-915c2b3644b5@googlegroups.com> Subject: przekierowanie z $_SERVER["REQUEST_URI"] From: web <mirekgutowski@gmail.com> Injection-Date: Thu, 21 Jul 2016 10:44:31 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit