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

XF 1.3 Login page

#1
Hi,
I have a closed forum where users should be logged-in to view forums and members. Is there any way I can configure the index page as http://myforum.com/login.

If I type the url as http://myforum.com/, I get the following error since the view permission is set to No for unregistered users and by default the site goes to forum list.
upload_2014-6-23_12-46-58.png

Instead, I would like to go to the http://myforum.com/login page, if I just type the site url.
upload_2014-6-23_12-53-14.png

I changed the index page route from "forums/" to "login/" but it did not work. Can this be achieved through ACP or should I use any apache settings for the redirect. Thanks!

upload_2014-6-23_12-45-18.png
 

Liam W

Well-known member
#2
If you were to use a htaccess redirect, there would be no way of knowing if the person was logged in or not, so I don't think that would work, and I can't think of another method without an addon.
 

Liam W

Well-known member
#4
Thanks for the response Liam. If I am logged-in and go to the http://myforum.com/login url, it actually takes me to the forum list. So I think, that could work.

Please try going to http://xenforo.com/community/login, when you are logged-in and again when you are logged-out.

I am looking up how to do the .htaccess rewrite. Will let you know how that goes.
The issue is, if you redirect the plain site root to the login page, and someone is logged in, they'll get a redirect loop...

Liam