I am using magento community edition 1.9.0.1. I try the REST Client Example explained here: http://www.magentocommerce.com/api/rest/testing_rest_resources.html
But every time I send a request I got a 404
My server runs on localhost under the url : http://localhost/magento/
The rest api url I try is: http://localhost/magento/api/rest/products
For testing I am using the Firefox RESTClient Plugin.
What could be the reason for the error code 404?
Solution:
The reason for the 404 error message was a missing configuration in the apache2.con File (/etc/apache2/apache2.conf).
To enable rewrites it is necessary to add the option 'AllowOverride All'
<Directory /var/www/html/magento/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Be careful with the directory path in the Tag 'Directory'. The path must match the location of your Magento installation on the file system. After changing the configuration restart the apache server.