title: Prestashop webservice error 404
body: <p>I am trying to run a webservice from a script to prestashop (the example given with customers list). I receive the following error:</p>
  
  <pre><code>HTTP REQUEST HEADER
  GET //api/customers&amp;ws_key=57IGC8CC1HPC58U865KP7YNPWK1G4LSC HTTP/1.1
  Authorization: Basic NTdJR0M4Q0MxSFBDNThVODY1S1A3WU5QV0sxRzRMU0M6
  Host: edentalbook.com
  Accept: */*
  
  HTTP RESPONSE HEADER
  HTTP/1.1 404 Not Found
  Date: Mon, 17 Oct 2016 10:11:08 GMT
  Server: Apache
  Access-Control-Max-Age: 1000
  Access-Control-Allow-Headers: X-Requested-With, Content-Type, Origin, Authorization, Accept, Client-Security-Token, Accept-Encoding
  Access-Control-Allow-Credentials: true
  Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
  Content-Length: 320
  Content-Type: text/html; charset=iso-8859-1
  RETURN HTTP BODY
  &lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt;
  &lt;html&gt;&lt;head&gt;
  &lt;title&gt;404 Not Found&lt;/title&gt;
  &lt;/head&gt;&lt;body&gt;
  &lt;h1&gt;Not Found&lt;/h1&gt;
  &lt;p&gt;The requested URL /api/customers&amp;amp;ws_key=57IGC8CC1HPC58U865KP7YNPWK1G4LSC was not found on this server.&lt;/p&gt;
  &lt;hr&gt;
  &lt;address&gt;Apache Server at edentalbook.com Port 80&lt;/address&gt;
  &lt;/body&gt;&lt;/html&gt;
  Bad ID
  </code></pre>
  
  <p>I tested the server (I installed a fresh prestashop) and is working without problem. So I assume is a prestashop configuration issue.
  Also I enabled friendly urls, htaccess </p>
  
  <p>Any ideas? Thank you</p>
  
  <p>Edited: Possibly it is a url rewrite issue because if i go from the server to <a href="http://edentalbook.com/webservice/dispatcher.php" rel="nofollow">http://edentalbook.com/webservice/dispatcher.php</a> works perfectly
  I attach the htaccess file</p>
  
  <pre><code># ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
  # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
  # http://www.prestashop.com - http://www.prestashop.com/forums
  
  &lt;IfModule mod_rewrite.c&gt;
  &lt;IfModule mod_env.c&gt;
  SetEnv HTTP_MOD_REWRITE On
  &lt;/IfModule&gt;
  
  RewriteEngine on
  RewriteCond %{HTTP:Authorization} ^(.*)
  RewriteRule . - [E=HTTP_AUTHORIZATION:%1]
  
  
  
  #Domain: betashop.edentalbook.com
  RewriteRule . - [E=REWRITEBASE:/]
  RewriteRule ^api$ api/ [L]
  
  RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
  
  # Images
  RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
  RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
  RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
  RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
  RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
  RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
  RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
  RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
  RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
  RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
  # AlphaImageLoader for IE and fancybox
  RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
  
  # Dispatcher
  RewriteCond %{REQUEST_FILENAME} -s [OR]
  RewriteCond %{REQUEST_FILENAME} -l [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^.*$ - [NC,L]
  RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
  &lt;/IfModule&gt;
  
  AddType application/vnd.ms-fontobject .eot
  AddType font/ttf .ttf
  AddType font/otf .otf
  AddType application/x-font-woff .woff
  &lt;IfModule mod_headers.c&gt;
      &lt;FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$"&gt;
          Header add Access-Control-Allow-Origin "*"
      &lt;/FilesMatch&gt;
  &lt;/IfModule&gt;
  
  #If rewrite mod isn't enabled
  ErrorDocument 404 /index.php?controller=404
  
  # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
  </code></pre>