Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 16 Sep 2016, 00:00
twistsol's Avatar
twistsol twistsol is offline
 
Join Date: Apr 2015
Real name: Chr's Phelps
Redirecting old articles to new articles

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

Problem:
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.
__________________
Good decisions come from experience
Experience comes from bad decisions
Reply With Quote
  #2  
Old 16 Sep 2016, 12:11
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
Just use standard 301 redirects..

Redirect 301 /articleurl.html fullurl
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.

Reply With Quote
  #3  
Old 28 Sep 2016, 16:57
twistsol's Avatar
twistsol twistsol is offline
 
Join Date: Apr 2015
Real name: Chr's Phelps
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.
__________________
Good decisions come from experience
Experience comes from bad decisions
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:45.

Layout Options | Width: Wide Color: