MyBB Community Forums

Full Version: Redirect entire forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello guys;
i've transferred my mybb forum on another website and i'm currently trying to make a full redirect of my previous links without luck.
how can i redirect all my forum to the other index using .htaccess?
i've tried with
redirect 301 /forum http://www.newwebsite/forum/
but it doesn't work.
Any idea?
Thanks!
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] 
open global.php and at the very top above everything else add this:

<?php
header("location: http://www.newdomain.com/{$_SERVER['REQUEST_URI']}");
?>
:p
Yes, create a .htaccess file, copy the following lines to it, save and upload to your forum root, it will redirect everyone to the new forum (replace newdomain.com with your new domain

(2011-11-02, 12:19 AM)pdtrx Wrote: [ -> ]
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] 
Thank you all guys work like a charm!

i just use this th to a related problem that i've with mod_rewrite, i'm trying to make the urls like:
www.mywebsite.com/section/blablabla.php to www.newwebsite.com/forum/section/blablabla.php
i've tried with:
RewriteRule ^/section/(.*)$ http://www.newwebsite.com/forum/section/$1
but seems to doesn't workDodgy
A little help? thx again!