mod_rewrite problem when mixed with Laravel


New to XenForo and on on my prod server (nginx) the rewrite is not acting the same as in dev (apache).

XenForo is installed in /forum
While in / the Laravel framework is responding
Nginx Server

When I enable SEO friendly URLs I get 404 response from the Laravel framework, hinting that the root .htaccess is overriding the /forum .htaccess file.

I've tried commenting out and enabling "RewriteBase /forum" in the /forum/.htaccess No difference
Also in the /.htaccess I've added RewriteBase /
I've also tried Rewrite rule to exclude the forum directory.
Still 404 response from the Laravel framework.

Anyone got a tip for how to solve this?
The root .htaccess looks like this currently.

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes

RewriteEngine On

# Exclude directory from rewriting
RewriteRule ^(forum) - [L]

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]


Well-known member
nginx doesn't use htaccess files, that's an apache thing. be sure you've installed the nginx rewrite rules file to your nginx config.