I'm creating a backend service for my mobile app and currently facing an issue on webhosting when some routes e.g
$api->post('/car/{id}/rate', 'App\Http\Controllers\APIController@postCarRatings');
usually post ones with params, returns message: 404 not found while on localhost all the routes works perfectly. I've tried to set the API_PREFIX
and API_DOMAIN
, nothing helped me.
Did anyone else face this issue before ? I'm using laravel 5.4
My Apache Config:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2j7yRM0
via IFTTT
Aucun commentaire:
Enregistrer un commentaire