I recently successfully installed flarum to my domain via softaculous on a Namecheap shared hosting. However, I have tried all the methods of remove /public from the url, but I keep breaking the site. Below is the file structure.
/home/goodvurf
- /forum
- /domain.com
/storage
/vendor
I moved all files from public to /forum and deleted the public folder.
I have edited index.php - $site = require './site.php';
I have edited site.php to
return Flarum\Foundation\Site::fromPaths([
'base' => DIR,
'public' => DIR,
'storage' => DIR.'/storage',
I have also edited the config file to change the url. however, after making all these changes, am getting a blank screen with Index of /public/
Can you help me solve this problem?