I've got an existing WordPress site and I need to get a Laravel app to work in a sub-folder called 'api'. This is an nginx site, so .htaccess redirects will not work, and the best solution if it needs a redirect would be a PHP solution as I'm not sure I'll be able to access the nginx config directly on this particular server. I'm able to access the index.php file in the /public/ folder of the Laravel app, but going to /api/route/ takes me to a WordPress 404 page. I tried doing redirects in nginx config and PHP but nothing seems to be working. Is there something specific I need to do for putting a Laravel app in a sub-folder? I've inherited the project from another person and it is currently working where it is but it needs to be moved to a new server.
My routes look like this:
Route::group(array('before' => 'api_auth'), function()
{
Route::get('/', 'Home\HomeController@index');
Route::resource('cusomter', 'Customer\CustomerController', array('only' => array('show', 'store')));
Route::resource('customer.conversion', 'Customer\CustomerController', array('only' => array('index')));
Route::resource('customer.search', 'Customer\CustomerController', array('only' => array('index')));
});