vBulletin Mods

The Official vBulletin Modifications Site

Redirecting old articles to new articles
by twistsol
16 Sep 2016 00:00

I asked this on vBulletin.com a few weeks ago and received no response so I thought I'd try here.

In our old vb3 installation, we had a directory for articles from pre CMS days. This articles directory was in our forum root. In some cases there were .PDF files in /articles/files and in other cases, a single directory was dedicated to an article for example a review of the Ryobi BD4600 sander had an html file and other supporting files in /articles/bd4600.

When we upgraded to vb4, I manually converted all of these old articles into actual CMS articles and we were able to leave the old articles directory in place. We are now on vb 5.2.3, and the articles system won't work with that directory on the server so it was removed as part of the upgrade. We now have over 4500 not found search engine crawl errors most of which relate these old articles. If you try to navigate to one of the old articles you receive the appropriate error message below.

Invalid Page URL. If this is an error and the page should exist, please contact the system administrator and tell them how you got this message.

The actual Question:
Is there a way that I can redirect these old links to the actual VB5 article through .htaccess or another method?

On our site, I'm willing to update all the bad links manually, but there are many other external links to these same articles.

RichieBoy67 16 Sep 2016 12:11

Just use standard 301 redirects..

Redirect 301 /articleurl.html fullurl

twistsol 28 Sep 2016 16:57

OK, I tried this on my local installation and here is what is happening. In my .htaccess I have the following line immediately after the RewriteEngine On directive.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The resulting URL that comes out is
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The question mark and everything following it shouldn't be there, and no matter what I do, it adds the original bad URL after the route string. Any ideas?

--------------- Added 28 Sep 2016 at 22:18 ---------------

Figured it out. Adding a ? after the redirected URL solved the problem.

All times are GMT. The time now is 17:11.

Powered by vBulletin® Version 3.8.14
Copyright © 2022, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.