How to change the redirect type in vBulletin 4?
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:
will be changed to:
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:
$code = 302;
$code = 301;
If your vBulletin forum is hosted on a SiteGround server, you can edit the file through cPanel->File Manager.
You need help with an application? SiteGround is specialized in hosting and supporting more than 200 scripts. Sign up for our web hosting services and let us help you with your application, 24/7!