In the name of God the Merciful
i have merge from vb4 but i have rewrite rule problem
i want to Redirect from showthread.php?t= to redirect.php?tid=
like this
RewriteRule ^showthread.php?t=([1-9][0-9]*)$ redirect.php?tid=$1 [L,QSA,NC]
but it not work
any help please
![[Image: do.php?imgf=13548513011.jpg]](https://camo.mybb.com/023ffb3b5594f8055614bf243782fa7952f10bdd/687474703a2f2f7777772e75702e672d6172612e636f6d2f646f2e7068703f696d67663d31333534383531333031312e6a7067)
You need RewriteCond to match the query string.
Alternatively, if it's showthread.php (same filename as MyBB), you can just hook into global_start with this code:
global $mybb, $settings;
if(THIS_SCRIPT == 'showthread.php' && $mybb->input['t'])
{
header("Location: {$settings['bburl']}/redirect.php?tid=".(int)$mybb->input['t'], 301);
exit;
}
Or put the redirect.php code there in the first place.
thank you very much
you are the best