MyBB Community Forums

Full Version: (Redirects 301) vBulletin to MyBB
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone!
 
 I did the conversion of vBulletin 4.2.3 to MyBB 1.8.6 and it was all right, only I have a problem with SEO friendly 301 redirects, I don't want to lose all the previous links.
 
 Link Original vBulletin 4.2.3:
 showthread.php?751-IMPORTANTE-las-normas-del-Foro
 
 Current link of MyBB 1.8.6:
 Thread-IMPORTANTE-Las-Normas-del-Foro
 
 It is possible with code in the .htaccess 301 to make this address?
 
Thank you very much!
Undecided
As long as the slug (the part of the title in the url) is the same in both forums it should be possible via something like this (not that I haven't tested it):

RewriteRule ^showthread.php?([0-9]+)-([a-zA-Z\-]+)$ Thread-$1 [R=301,L,QSA]
Thank you!, but still does not work... I enclose two links (which doesn't work) and the new one that must redirect:
 
 Original (not working)

http://www.zero13wireless.net/showthread.php?8154-Proyecto-Cantenna-BELGRANO-(-por-Mandarache-)

New (Working)

http://www.zero13wireless.net/Thread-Proyecto-Cantenna-BELGRANO-por-Mandarache

If I put in the original link, changing the showthread.php?8154 by Thread, Work.

I hope your comments!

Thanks! Smile
Because vBulleting allows characters than your MyBB configuration doesn't.
Isn't there any solution?, I find it strange, that symbol can not be ignored with wildcard? (*) (^)
In your example you can clearly see that the slug is different so you can't redirect using that one.
An alternative would be using the id which is included in your old link, however that would require changes to the merge system which you would need to rerun and you would need rio write a plugin.