Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Nick Collins Posted January 17, 2012 Posted January 17, 2012 Hi I have just moved my forum from an installation with vbulletin which had vbseo. It was located in a /forum folder on the site. The IPB is located on the site root, but even if it wasn't, the URL's were not named the same as before. I have quite a lot of indexed threads on google and lots in my twitter feed, how do I do this so people are redirected to the correct thread on IPB? I have already redirected it so if people type in the /forum it goes to the root. The thread URL is different on vbulletin to IPB, is it even possible to do a redirect? I just dont want all those links to go to waste, there are at least 5000 out there, each time a new thread was created, it was automatically posted to twitter and facebook, we had a lot of indexed threads in google too. Anyone have an idea how to do this? Thanks Nick
Nick Collins Posted January 17, 2012 Author Posted January 17, 2012 I have just looked at the old links and it used to be: http://www.sitename.com/forum/forumname/postID/thread-title.html So example this could be www.sitename.com/forum/this-forum/12345/hello-world.html For forums it used to be http://www.sitename.com/forum/forumname/
Cloaked Posted January 18, 2012 Posted January 18, 2012 Put this in .htaccess of the IPB forum directory changing domain as needed. RewriteRule [^/]+/([0-9]+)/[^/]+.html http://www.sitename.com/forums/showthread.php?t=$1 [L,R=301] Then in the old forum directory add this to .htaccess RewriteRule (.*) http://www.sitename.com/$1 [L,R=301] You might have to tweak the first one a bit, but, it should work without a problem. Also make sure you upload the files from the tools folder in the converters download and setup the config.php file with your convert id and path.
Christophe Posted January 18, 2012 Posted January 18, 2012 Htaccess rule is the best way to do this as mentioned above
Recommended Posts
Archived
This topic is now archived and is closed to further replies.