Hi everyone.
Here is the thing.
I installed Flarum thru Composer on my local machine and uploaded the entire directory to my host.
I know it is not the way it is supposed to be done.
But before that, I tried another way ; installing Flarum thru Plesk which includes Composer.
But anyway, it is not the point of my message.
As many of you, I had a "Internal server error" when I tried to access it via http://forum.domain.tld
I discovered in the logs, that it was a 404 error.
I thought it could not find the index.php file.
I replaced it with my own with phpinfo in it : it works.
So I tried to access to http://forum.domain.tld/index.php.
No 404 error on the index file but 404 error on css and js files, as it was looking for http://forum.domain.tld/index.php/assets/xxxxx.js
I ended up replacing the .htaccess file with one I wrote (first time, so be kind) :
Rewriterule ^index.php/assets/(.*)$ /assets/$1 [PT]
RewriteRule ^index.php/vendor/(.*)?$ / [F,L]
RewriteRule ^index.php/storage/(.*)?$ / [F,L]
RewriteRule ^index.php/config.php$ / [F,L]
RewriteRule ^index.php/.git/(.*)?$ / [F,L]
RewriteRule ^index.php/api(.*)$ api.php [QSA,L]
RewriteRule ^index.php/admin(.*)$ admin.php [QSA,L]
RewriteCond "%{REQUEST_FILENAME}" "!-f"
RewriteCond "%{REQUEST_FILENAME}" "!-d"
RewriteRule ^(.*)$ http://forum.domain.tld/index.php [R,L]
And now, it kind of works, but my URLs are all like http://forum.domain.tld/index.php/d/1-test instead of http://forum.domain.tld/d/1-test
Where do you think I have an issue ?
Thanks