It is a very difficult script to get working for first time users I have to admit.
Here is my setup:
public_html/all the flarum folders are here
public_html/public
My problem is that when the user types www.mywebsite.com, he is redirected to:
www.mywebsite.com/public which is not nice.
I would need to keep www.mywebsite.com as it is and have it forced to https.
I tried many ways, just cannot work it out.
The 3 important files for this to work are:
public_html/.htaccess
public_html/config.php
public_html/public/.htaccess
in public_html/.htaccess
I have this:
RewriteEngine On
RewriteRule ^$ /public [L]
In public_html/config.php
I have this:
'url' => 'http://mywebsite.com/public',
If I remove the /public form the url I get the error "route not found"
To go https:
I tried this:
'url' => 'https://mywebsite.com/public',
in public_html/public/.htaccess , I added:
RewriteCond %{HTTPS} =off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L]
But now all the icons are missing....nightmare.