mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 13:11:52 +02:00
Bugfix: Fixed query that was being lost on redirection.
This commit is contained in:
parent
2960b6c3b9
commit
7837aec90c
@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||
| $Revision: 1.52 $
|
||||
| $Date: 2008-04-26 02:12:13 $
|
||||
| $Revision: 1.53 $
|
||||
| $Date: 2008-04-28 13:42:23 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@ -440,7 +440,9 @@ if($pref['redirectsiteurl'] && $pref['siteurl']) {
|
||||
{
|
||||
if(substr(e_SELF,7,4)=="www." || substr(e_SELF,8,4)=="www.")
|
||||
{
|
||||
$location = str_replace("://www.","://",e_SELF);
|
||||
$self = e_SELF;
|
||||
if(e_QUERY){ $self .= "?".e_QUERY; }
|
||||
$location = str_replace("://www.","://",$self);
|
||||
header("Location: {$location}", true, 301); // send 301 header, not 302
|
||||
exit();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user