PDA

View Full Version : redirect on showthread?#####


Sobe Silvertree
Sun 24th Sep '06, 4:50pm
We created 2 different forums under two subdomains and there are some links out on the internet from specific interviews with game designers etc.

So the problem is I want to redirect some of these interviews that deal with one specific game interview over to another subdomain forum.

Specifically

Redirect:

http://eq.forums.thedruidsgrove.org/showthread.php?t=11813

To

http://van.forums.thedruidsgrove.org/showthread.php?t=11813

I was under the impression I could just use .htaccess to do this by using a permanent redirect. It doesn't work so I am requesting some help.

Thank you,

nico_swd
Mon 25th Sep '06, 9:37am
.htaccess would be the best solution. Why doesn't it work? Does your server not support it, and are you sure you used it correctly?

Sobe Silvertree
Mon 25th Sep '06, 4:07pm
.htaccess would be the best solution. Why doesn't it work? Does your server not support it, and are you sure you used it correctly?


Not sure why I may have incorrect format:

I thought it was just

Redirect permanent ^http://eq.forums.thedruidsgrove.org/showthread.php?t=11813 http://van.forums.thedruidsgrove.org/showthread.php?t=11813

I maybe wrong because its calling PHP to show thread .. any help would be appreciated.

nico_swd
Mon 25th Sep '06, 7:02pm
Hm, give this a try.

Redirect showtread.php?t=11813 http://van.forums.thedruidsgrove.org/showthread.php?t=11813


Save it in here:
http://eq.forums.thedruidsgrove.org/

EDIT:

If that fails and there are only some specific threads you want to redirect, you can try adding this at the top of showthread.php


$redirectids = array(11813, '...');

if (in_array($_GET['t'], $redirectids))
{
header('Location: http://van.forums.thedruidsgrove.org/showthread.php?t='. $_GET['t']);
exit();
}

Sobe Silvertree
Mon 25th Sep '06, 9:10pm
Second option worked directly with the showthread.php: I thank you for that.

I just hate going into the code directly but heck it worked.

If anyone knows why the Redirect would not work on .htaccess I like to get an answer on that also but this fixes the problem and gives us another option.

Thank you again Nico_swd!