There are 3 different ways to achieve it, 2 of which are recommended by Flarum. It's unclear from your screenshots if you have 2 solutions active at the same time or if your host is lying to you about the feature names.
Usually it's either:
- Modify folder structure to not have
public
(follow "Customizing Paths" instructions in documentation or download the ready-made ZIP without public folder)
- Keep
public
folder structure, change DocumentRoot
- Keep
public
folder structure, use .htaccess
to create a proxy/silent redirect
Solution 3 is not recommended.
It seems like you are currently using solutions 2 and 3 at the same time, which would likely not work. Or perhaps what your managed hosting calls "Document Root" (solution 2) is in fact achieved with .htaccess
behind the scenes (solution 3).
Or perhaps the .htaccess
has been created by Softaculous to redirect the client side to the subfolder, but I don't know why they would do that rather than fixing their software to install Flarum correctly in the first place.
If you don't have anything on your forum yet, I suggest deleting everything, including the database and virtualhost entry. Then re-create the virtualhost, and download Flarum using the ZIP method, "public folder: no" https://docs.flarum.org/install#installing-by-unpacking-an-archive It should work out of the box.
If you want to try to make the DocumentRoot method work, start by deleting the .htaccess
file that you showed in your screenshot, and see if that changes anything.
If you are not reinstalling Flarum and already completed the web wizard screen, don't forget to update config.php
with the new world-facing URL.
If you still have issues, please share details about what happens when you try to access the site. What's the error visible on the page or in Apache log file?