Hi, I just deployed my Slim 4 (Skeleton) on my production server, that is a shared server.
The slim project is inside an API
folder.
And I changed the htaccess from api/ folder to:
<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ public/ [L] RewriteRule (.*$) public/$1 [L] </IfModule>
And the htaccess from api/public to:
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$ RewriteRule ^(.*) - [E=BASE:%1] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L] </IfModule>
But it always returning the 404 response for all routes.
{ "statusCode": 404, "error": { "type": "RESOURCE_NOT_FOUND", "description": "Not found." } }
However if I run locally using composer start, everything works very well.
Does anybody has any clue on how to solve that?
Thanks,
Ricardo Bonino