MyBB Community Forums

Full Version: redirecting with example1.com/forum/ to example2.com/forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i have an domain name with cpanel, called example1.com and when i click the 'forum' button in the default.html, the browser address bar change to example1.com/forum/index.php as expected. Smile

and if i click a thread, the browser address bar change to example1.com/forum/forumdisplay.php?fid=xy as expected. Smile


but i bought a new domain name called example2.com. so i redirected example1.com to example2.com. so, when i go to example2.com it shows the 'forum' button as expected. Smile

but when i click the 'forum' button there, browser address bar only shows example2.com
not example2.com/forum/index.php Huh
and even if i click a thread, it still shows just example2.com but i want the browser address bar to change to example2.com/forum/forumdisplay.php?fid=xy
not just example2.com all the time Angry


what should i do. thank you. sorry i dont know a name for this question, so i had to write long.

by the way this is the button code of default.html
<html>

<marquee> test home page </marquee>
<FORM METHOD="LINK" ACTION="forum/index.php">
<INPUT TYPE="submit" VALUE="Forum">
</FORM>

</html>
Are you using Apache server? better try to use .htaccess 301 redirections they are better for SEO than a simple browser based redirection.
Change http://yourdomain.com With Your Domain And Paste Following Code In .htaccess

RewriteEngine on
RewriteRule (.*) http://yourdomain.com/$1 [R=301,L]