Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 18 Aug 2017, 06:38
sub_ubi sub_ubi is offline
 
Join Date: Dec 2004
Creative solution needed: Splitting a site in two, how to redirect half?

I need some help brainstorming.

One of our subforums has outgrown the rest of the site, so we're splitting it off onto its own domain to become an entirely separate site.

Here's the tricky part: we want to redirect every thread from that subforum to the new domain, but leave all other threads/forums intact. There's nothing in the thread URL which states the forum it's from, so a simple redirect won't work.

There are tens of thousands of threads in that subforum. All ideas welcome

Last edited by sub_ubi; 18 Aug 2017 at 06:58.
Reply With Quote
  #2  
Old 19 Aug 2017, 02:53
Stingray27 Stingray27 is offline
 
Join Date: Jan 2006
A simple bit of php on a showthread hook, to detect the forum, and redirect if necessary.
Reply With Quote
  #3  
Old 19 Aug 2017, 22:58
sub_ubi sub_ubi is offline
 
Join Date: Dec 2004
Originally Posted by Stingray27 View Post
A simple bit of php on a showthread hook, to detect the forum, and redirect if necessary.
Brilliant, thank you
Reply With Quote
  #4  
Old 19 Aug 2017, 23:29
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
I recommend the hook showthread_getinfo which is called right after the requested thread is validated and exists.
From there you can use the $threadinfo variable.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #5  
Old 22 Aug 2017, 02:51
sub_ubi sub_ubi is offline
 
Join Date: Dec 2004
Even better!
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 02:12.

Layout Options | Width: Wide Color: