Page Redirect 302
Permalink Browser Info Environment
Hi, we try to change redirect to 302, but ist does not work.
I have added in page_redirect.php (column 34)
header("HTTP/1.1 301 Moved Permanently");
but the redirects are still 301?
I have added in page_redirect.php (column 34)
header("HTTP/1.1 301 Moved Permanently");
but the redirects are still 301?
Type: | Discussion |
---|---|
Status: | New |
sorry - little mistake 301 - 302 :-)
we try to redirect to 301 but it's still 302
we try to redirect to 301 but it's still 302
try sticking it under the
//redirect
in the model.
//redirect
in the model.
thats what we made:
changed: /packages/page_redirect/models/page_redirect.php in Line 34:
header("HTTP/1.1 301 Moved Permanently");
$sLink = $npage->getCollectionPointerExternalLink();
header('Location: '.$npage->getCollectionPointerExternalLink());
but it's still 302...
changed: /packages/page_redirect/models/page_redirect.php in Line 34:
header("HTTP/1.1 301 Moved Permanently");
$sLink = $npage->getCollectionPointerExternalLink();
header('Location: '.$npage->getCollectionPointerExternalLink());
but it's still 302...
I'm confused, do you want a 301 or a 302
On Feb 13, 2012 3:14 AM, "concrete5 Community" <discussions@concretecms.com>
wrote:
On Feb 13, 2012 3:14 AM, "concrete5 Community" <discussions@concretecms.com>
wrote:
Sorry for Confusing...
We need 301
We need 301
I just updated the addon, it now uses a 301 redirect.
header("HTTP/1.1 302 Found");