Laravel and Wordpress on same server/domain
Ended up asking the same question on ServerFault. There i got the answer. Linking it here for refference:
https://serverfault.com/questions/739728/laravel-and-wordpress-on-same-server-domain
As asked in the comment, here is the response:
As you can see in your logs the first condition didn't match:
applying pattern '^/login' to uri 'login/'
login/
doesn't start with /
So you need to change your rule to
RewriteRule "^login/" "index.php" [L]
It's possible to add a rewrite condition to the default Laravel .htaccess
file that will allow all requests to a subdirectory ( /wordpress ) to be ignored by Laravel.
<IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On # Ignore Wordpress directory RewriteCond $1 !^(wordpress) # Redirect Trailing Slashes... RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L]</IfModule>