• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Redirect Index Page Script

#1
Wasn't sure were exactly to post this but I want to set my forums up at mysite.com/community
and need to know how to redirect mysite.com to the /community?

Thanks for any help.
 

Jake Bunce

XenForo moderator
Staff member
#2
Wasn't sure were exactly to post this but I want to set my forums up at mysite.com/community
and need to know how to redirect mysite.com to the /community?

Thanks for any help.
Use this code in a .htaccess file in the web root:

Code:
Redirect 301 / /community/
Or upload an index.php file with this code:

Code:
<?php

header("Location: http://www.mysite.com/community/");

?>
The index.php file would be more appropriate unless the forum previously resided in the web root and you need to redirect all of the old links.