php - Lavarel REST API "Status 404 Not Found" -


currently have laravel rest api system running inside linux server running apache, php , remote database sql server. superiors asked me create same system instead using windows, iis, , php. i've followed installation instructions in net , arrived @ laravel 5 screen page. when transferred laravel files , installed in windows did not have error in process. imported .htaccess config iis. when made request api returning http status 404 error.

here .htaccess file

<ifmodule mod_rewrite.c>     <ifmodule mod_negotiation.c>         options -multiviews     </ifmodule>       rewriteengine on      # redirect trailing slashes...     rewriterule ^(.*)/$ /$1 [l,r=301]      # handle front controller...     rewritecond %{request_filename} !-d     rewritecond %{request_filename} !-f     rewriterule ^ index.php [l] </ifmodule>  <?xml version="1.0" encoding="utf-8"?> <configuration>     <system.webserver>         <directorybrowse enabled="true" />         <rewrite>             <rules>                 <rule name="imported rule 1" stopprocessing="true">                     <match url="^(.*)/$" ignorecase="false" />                     <action type="redirect" url="/{r:1}" redirecttype="permanent" />                 </rule>                 <rule name="imported rule 2" stopprocessing="true">                     <match url="^" ignorecase="false" />                     <conditions logicalgrouping="matchall">                         <add input="{request_filename}" matchtype="isdirectory" ignorecase="false" negate="true" />                         <add input="{request_filename}" matchtype="isfile" ignorecase="false" negate="true" />                     </conditions>                     <action type="rewrite" url="index.php" />                 </rule>                 <rule name="imported rule 3" stopprocessing="true">                     <match url="^" ignorecase="false" />                     <conditions logicalgrouping="matchall">                         <add input="{request_filename}" matchtype="isdirectory" ignorecase="false" negate="true" />                         <add input="{request_filename}" matchtype="isfile" ignorecase="false" negate="true" />                     </conditions>                     <action type="rewrite" url="index.php" />                 </rule>             </rules>         </rewrite>     </system.webserver> </configuration> 


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -