Failed to load resource: the server responded with a status of 404 (Not Found)
/YOUR-FORUM/api/posts?filter%5Buser%5D=1&filter%5Btype%5D=comment&page%5Blimit%5D=20&sort=-time
If you're getting this error on Apache2/Ubuntu when attempting to log in or access your "profile" panel, please do this:
- Open up your terminal (I use Xshell 5) and connect to your server.
2.
*If flarum is installed within sub directory:
- sudo nano /var/www/html/SUBDIRECTORYNAME/.htaccess
*If flarum is installed within sub directory and you've created a new apache2 site:
- sudo nano /var/www/www.YOURSITE.com/YOURPUBLICDIRECTORY/SUBDIRECTORY/.htaccess
- Find the line containing:
<IfModule mod_rewrite.c>
Then find or put:
RewriteEngine on
RewriteBase /YOURSUBDIRECTORY
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
I've searched all over the internet and these forums and couldn't find this simple answer. Hope it helps!