The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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. |
#2
|
||||
|
||||
Just use standard 301 redirects..
Redirect 301 /articleurl.html fullurl |
#3
|
||||
|
||||
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.
Code:
Redirect /vb5/articles/files/browning.pdf http://localhost/vb5/articles/mobile-shops-bases/824890-jeff-browning-s-bt3000 Code:
http://localhost/vb5/articles/mobile-shops-bases/824890-jeff-browning-s-bt3000?routestring=articles/files/browning.pdf --------------- Added [DATE]1475101134[/DATE] at [TIME]1475101134[/TIME] --------------- Figured it out. Adding a ? after the redirected URL solved the problem. |
Благодарность от: | ||
MarkFL |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|