Resource icon

Redirection Scripts for vBulletin 3.x 8.0

No permission to download
Mike could you please include the file tags.php in your redirection scripts? I'm trying to redirect tags from vBulletin to XenForo (using XenTag by @Dinh Thanh and @xfrocks). Here are the URL patterns:

Code:
http://www.mysite.com/forums/tags.php
http://www.mysite.com/forums/tags.php?tag=videos
http://www.mysite.com/forums/tags.php?tag=videos&page=2
http://www.mysite.com/forums/tags.php?tag=funny+stuff
http://www.mysite.com/forums/tags.php?tag=funny+stuff&page=2

Should respectively to go:

Code:
http://www.mysite.com/forums/tags/
http://www.mysite.com/forums/tags/videos/
http://www.mysite.com/forums/tags/videos/page-2
http://www.mysite.com/forums/tags/funny+stuff/
http://www.mysite.com/forums/tags/funny+stuff/page-2

I have tried with .htaccess rules on this thread with no luck. Please this is urgent, I just moved yesterday and I'm losing traffic due to this!!!
 
Feature request: please also redirect categories. Btw may I ask you why you don't redirect categories?
Ref.: https://xenforo.com/community/threads/vbulletin-3-8-forumdisplay-php-redirection-problem.82182/

If you're not going to implement this could you please share a .htaccess redirection rule to redirect (one by one) the following category URLs skipping your forumdisplay.php file:

http://www.mysite.com/community/forumdisplay.php?f=567 to http://www.mysite.com/community/categories/nodename.567/

Thanks.
 
@Jake Bunce - It's very much after the fact (apologies (other things pushed our migration back a bit)); but I just wanted to thank you for your help with those RewriteRules; they worked a treat.
 
I'm using this add-on since one year. Previously I was using vBSEO. I using in this: ( https://xenforo.com/community/threads/redirect-vbseo-to-xenforo-nginx.65901/#post-694334 )

Nevertheless, I've installed your plugin. Can I remove this add-on? In my opinion one year enough time for to use this add-on.

Please excuse me for my bad english :(

One year is enough time for search engines. But there may still be old links inside of posts and saved as bookmarks in client browsers.
 
@Jake Bunce

Someone how I collected a bunch of links using various /archive link structures. For vb3.8 I had to use these redirects. Will they work automatically with this plugin?

# ARCHIVE REDIRECTS
RewriteRule ^archive/topic/t-([0-9-]+)([[a-zA-Z0-9_]*).html$ showthread.php?t=$1 [R=301,L]
RewriteRule ^archive/topic/t-([0-9-]+)$ showthread.php?t=$1 [R=301,L]

RewriteRule ^archive/topic/([0-9-]+).html$ showthread.php?t=$1 [R=301,L]

RewriteRule ^archive/t-([0-9-]+)([[a-zA-Z0-9_\!?&]+).html$ showthread.php?t=$1 [R=301,L]
RewriteRule ^archive/t-([0-9]+)$ showthread.php?t=$1 [R=301,L]

RewriteRule ^archive/index.php/t-([0-9]+).html$ showthread.php?t=$1 [R=301,L]
 
Not totally sure I follow - you list those redirects and direct them to showthread.php, so they would get redirected without issue (with the provided files). If you have something that works, I would always stick with it.
 
Not totally sure I follow - you list those redirects and direct them to showthread.php, so they would get redirected without issue (with the provided files). If you have something that works, I would always stick with it.
But would they be considered as two redirects?
 
@Mike

Look at this post here:
https://www.physicsforums.com/threa...ate-away-from-each-other.771051/#post-4854511

You'll see the image proxy puked on those images. I looked and the code the member using is this vb3 link:
Code:
[CENTER][IMG]http://www.physicsforums.com/attachment.php?attachmentid=73222&stc=1&d=1410947597[/IMG][/CENTER]

If you plug that url into your browser I think your redirection plugin works and you see the image. However it appears the image proxy doesn't use the redirect.
 
The image isn't viewable as a guest, therefore the proxy won't view it.
Must not be a proxy issue then. Any vb3 attachments that were inserted into the post are broken, yet if I edit the post they show in the overlay. How do I fix this?
 
That's not redirect related so this isn't really the right thread. If you have any more questions after this, you should post a new thread about it.

It sounds like your attachments were inserted as image tags rather than actually being "embedded" into the post. They only work when editing as the editor does not use the proxy and you're still logged into your old system presumably.
 
You can try this. I haven't tested it personally though.

I found some bugs:

1. When viewing www.site.com/tags.php it's redirecting to www.site.com. It should redirect to www.site.com/tags/
2. Your script is having troubles with URL with special characters like (it's just redirecting to www.site.com):

tags.php?tag=espa%F1ol
tags.php?tag=telefon%EDa+m%F3vil
tags.php?tag=videoc%E1mara

These should redirect respectively to:

www.site.com/tags/español/
www.site.com/tags/telefonía+móvil/
www.site.com/tags/videocámara/

Hope you can fix these. Thanks!!
 
You can try this. I haven't tested it personally though.

I found some bugs:

1. When viewing www.site.com/tags.php it's redirecting to www.site.com. It should redirect to www.site.com/tags/
2. Your script is having troubles with URL with special characters like (it's just redirecting to www.site.com):

tags.php?tag=espa%F1ol
tags.php?tag=telefon%EDa+m%F3vil
tags.php?tag=videoc%E1mara

These should redirect respectively to:

www.site.com/tags/español/
www.site.com/tags/telefonía+móvil/
www.site.com/tags/videocámara/

Hope you can fix these. Thanks!!

Do you think these are easy to fix? Thanks!
 
The image isn't viewable as a guest, therefore the proxy won't view it.
So what can I do? I have thousands of threads where members put the old attachment url into an img tag in the post. It's bizarre that the edit window shows the images. I assume it doesn't invoke the image proxy?
 
Last edited:
I found some bugs:

1. When viewing www.site.com/tags.php it's redirecting to www.site.com. It should redirect to www.site.com/tags/
2. Your script is having troubles with URL with special characters like (it's just redirecting to www.site.com):

tags.php?tag=espa%F1ol
tags.php?tag=telefon%EDa+m%F3vil
tags.php?tag=videoc%E1mara

These should redirect respectively to:

www.site.com/tags/español/
www.site.com/tags/telefonía+móvil/
www.site.com/tags/videocámara/

Hope you can fix these. Thanks!!

@Mike could you please take a quick look at this file and provide assistance to fix the bugs? Thanks!
 
You are asking about something that is unrelated to the redirection scripts as it does not handle tags. The necessary behaviors would be specific to the tagging add-on you're using so you should be asking the author directly rather than in this thread.
 
Top Bottom