Help, I don't understand how to show my forum in /forum/ folder only, and not in /forum/public 🙁
I have installed from composer Flarum files in /forum/ folder.. and here ok.
Now, if I don't change settings, I go to mysite.com/forum/ and browser goes to mysite.com/forum/public.
I want hide public word.
I have tried:
htaccess:
# Uncomment the following lines if you are not using a `public` directory
# to prevent sensitive resources from being exposed.
RewriteRule /\.git / [F,L]
RewriteRule ^auth\.json$ / [F,L]
RewriteRule ^composer\.(lock|json)$ / [F,L]
RewriteRule ^config.php$ / [F,L]
RewriteRule ^flarum$ / [F,L]
RewriteRule ^storage/(.*)?$ / [F,L]
# RewriteRule ^vendor/(.*)?$ / [F,L]
index.php:
$site = require '../forum/site.php';
site.php:
return Flarum\Foundation\Site::fromPaths([
'base' => __DIR__.'/forum',
'public' => __DIR__,
'storage' => __DIR__.'/forum/storage',
]);
But I have this result (mysite.com/forum), if I click on "public/" I have 500 error: