Rigel Kentaurus
Well-known member
There is a couple lines in the redirection scripts posted, for vB, that are pure evil. They have good intentions, of course, but do not work as expected. Almost at the end ...
I noticed that my pagerank was "punished" or frozen for one of my domains (discussions about pagerank being relevant are a separate subject), and I went on asking around in Google forums, analyzing my traffic and seeing what could have happened. Finally, I got to it.
Let's say I open a link for a thread in my old forum and redirection to xF is not possible. The scripts, right now, redirect to the home of the new installation.
While this is completely natural to me and obvious, it figures that it is bad for SEO. Having a LOT of redirects pointing to your home page is severly frown upon, in the same way that having a high level pagerank domain redirected to your home page just to aggregate page rank won't work anymore.
Short story, I am changing those files to return a 404 instead of the 301 redirect to the home page
Regular redirection will still work, of course, just the ones in which a xF target could not be found, won't redirect to home page anymore.
Code:
if (!$target)
{
$target = XenForo_Link::buildPublicLink('canonical:index');
}
I noticed that my pagerank was "punished" or frozen for one of my domains (discussions about pagerank being relevant are a separate subject), and I went on asking around in Google forums, analyzing my traffic and seeing what could have happened. Finally, I got to it.
Let's say I open a link for a thread in my old forum and redirection to xF is not possible. The scripts, right now, redirect to the home of the new installation.
While this is completely natural to me and obvious, it figures that it is bad for SEO. Having a LOT of redirects pointing to your home page is severly frown upon, in the same way that having a high level pagerank domain redirected to your home page just to aggregate page rank won't work anymore.
Short story, I am changing those files to return a 404 instead of the 301 redirect to the home page
Regular redirection will still work, of course, just the ones in which a xF target could not be found, won't redirect to home page anymore.