Hi,
I installed Flarum on AWS successfully. Users could access through the HTTP.
For secure connection, I've installed the SSL on the AWS and changed the url from 'http' to 'https' in config.php.
Then, HTTPS access works - I can see the main page of the flarum.
However, 404 error occurs when I start a discussion or try to access old posts.
POST https://[domain name]/api/discussions
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /api/discussions was not found on this server.</p>
<hr>
<address>Apache/2.4.18 (Ubuntu) Server at [domain name] Port 443</address>
</body></html>
Here is a snippet of my .htaccess file regarding mod_rewrite.
<IfModule mod_rewrite.c>
RewriteEngine on
#HTTP to HTTPS
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
...
I've also tried to modify VirtualHost (000-default.conf and default-ssl.conf), but the result was same.
It would be great if I could get some references regarding flarum installation with https.
Thanks.