Content
When you install a new vBulletin 4 or upgrade from vBulletin 3, you will notice that the topics’, threads’ and posts’ URLs are rewritten in a new way.
For example the following vBulletin 3 URL:
http://forum.XonHost.com/showthread.php?t=3
will be changed to:
http://forum.XonHost.com/showthread.php?3-Forum-rules-please-read-before-posting!
vBulletin 4 comes with a hardcoded 302 redirect (temporary redirect) for the topics’, threads’ and posts’ URLs. However, such a redirect is not good for the Search Engine Optimization. It is handled well by the Google search engine, passing the link popularity from the additional URL to the main one, but causes troubles with the other search engines by splitting the link popularity between the two URLs. This has a negative impact on the page rank.
Thus the best solution is to change the redirect to 301 (permanent redirect). This is the preferred method since the popularity of the old URL will be brought to the new one.
You can easy change the redirect type by editing the includes/class_friendly_url.php file which is located under your vBulletin folder.
The following lines should be changed:
from:
$code = 302;
to:
$code = 301;
and
from:
exec_header_redirect($url, 302);
to:
exec_header_redirect($url, 301);
If your vBulletin forum is hosted on a XonHost server, you can edit the file through cPanel->File Manager.