Problems with .htaccess on godaddy server

2

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 ?

    
asked by Wilfredo Aleman 27.05.2018 в 16:24
source

1 answer

1

Hi Well The reason why the htaccess did not work is because my server is godaddy windows is a rare mixture between IIS and Apache I tried it on a server only apache and it works

    
answered by 31.05.2018 / 12:40
source