Ok, this is pretty cool. I just added a splash page to Friendica with two lines of code. Without this mod when someone goes to https://curators.mixremix.cc they see this.
Which is great if you want to log in but if you are just checking things out there’s nothing to do here. Most people will just hit their back button.
I was thinking about what I would want an interested person to see and I decided the Local Community page would be nice. This page displays the most recent posts from the MixRemix Curators.
So I wrote a one line program in a file called splash.php.
<?php header("Location: https://curators.mixremix.cc/community/"); ?>
And then I added this line to the top of my .htaccess file.
DirectoryIndex splash.php index.php
So when I go to the base link I get redirected to the Local Community page.
And the Login link, which also lets you create an account is displayed in the upper right.
The login page is still available by direct link.
This is done with two lines of code and no modifications at all to the Friendica install.