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

XF 1.3 How to set /forum as main index

xIsabel38

Well-known member
#1
How do I point my main site (MYSITE.com) to my forum (MYSITE.com/forum) so that when a user goes to the main URL they are sent directly to the forum instead?
 

Brogan

XenForo moderator
Staff member
#2
Is there any particular reason why you have installed in /forum rather than the root?

Unless you plan to use the root for something, I would recommend moving the forum to it.
 

Brogan

XenForo moderator
Staff member
#4
The simplest then would be an .htaccess rewrite:
Code:
RewriteEngine On
RewriteRule ^$ /forum [L,R=301]
 

xIsabel38

Well-known member
#5
lol well nvm, I don't even have a program to open that file. Probably a sign that I should just leave it alone before I mess something up.
 

FredC

Well-known member
#8
The simplest then would be an .htaccess rewrite:
Code:
RewriteEngine On
RewriteRule ^$ /forum [L,R=301]
Whats the difference between the .htaccess and a index.php file?
Code:
<?php
header('Location: http://your-domain.com/community/portal/', true, 301);