I am working on a Rest Api for my application. This is my application structure
api -config -modules --v1 ---controllers ---models -runtime -tests -web backend common console environments frontend I tried runing the following url http://192.168.1.4/~user/urshow/api/modules/v1/web/users
I got a Not found Error. I do have a controller named Users inside controllers folder.
My .htaccess file is like this (which is inside urshow/api/web)
RewriteEngine on RewriteBase /~user/urshow/api/modules/v1/web/ # If a directory or a file exists, use it directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Otherwise forward it to index.php RewriteRule . index.php
.htaccessfile, does your site work and what do the urls look like?