wordpress htaccess overrides laravel

Solution:

Perhaps this will help you:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_URI} !^/laravel/ #added for Laravel routing
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Here, were simply stating that, in order to route to WordPress, the following three considitions must be met:

  • The request string/URI must not begin with “/laravel/”
  • The request does not link to a file
  • The request does not link to a directory