The problem is as follows:
I have a webservice in which I redirect all requests to index.php
with .htaccess
the code of .htaccess
I'll leave it here
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+?)/?$ index.php?url=$1 [L,QSA]
When I access the url for example
http://localhost/app_restaurantes/restaurantes
(the restaurants directory does not exist should be redirected to index so that a json responds with the list of restaurants) the service works perfectly on localhost
But when I upload the webservice to the server of godaddy.com
and access a route it shows me the following error
404 - File or directory not found. The resource you are looking for had been removed, had its name changed, or is temporarily Unavailable.
I imagine that the .htaccess
is not working
Does anyone know if the htaccess
works with a specific version of apache or if I should make a change in htaccess
?