Bug #17320
closed
Wrong http-header on Domain-Redirect. Should be 301 instead of 302
Added by Michael Mtzel over 17 years ago.
Updated over 14 years ago.
Description
The option "Redirect to:" in the Domain-object should use the header 301 instead of 302.
The patch on "http://bugs.typo3.org/view.php?id=3787" only works with "External link".
(issue imported from #M5660)
Files
I just received a mail from Google QM team, telling they will throw us out of the index due to a redirection violating their guidelines - PLEASE raise priority of this issue to CRITICAL or post a workaround!
In the meantime, I've got a couple more of these mails and already guessed that this is in fact SPAM. However, since the mail contained neither attachments nor any faked URLs, there was no hint that it did not come from Google.
Furthermore, I found some evidence in several webmaster howtos that Google indeed punishes the use of 302 redirects above 301 ones. So I worked around this issue using .htaccess in the meantime.
Sorry for the excitement!
The redirect for domain records is controlled in t3lib_page->getDomainStartPage().
I'll get a core patch together for this (all 1 line of it), but should 301 vs 302 be something that is configurable in each domain record? I think my vote would be yes.
I don't think this should be configurable - we just need to do The Right Thing (TM).
Attached a one line patch against trunk to fix this. I'll propose it on the core list tomorrow.
Yippee! It work. Thanks to Jeff. What is with the 50 Euros?
Also available in: Atom
PDF