Moved from apache to my production site on Azure and now just 404


#1

We have a api we use that works great in our apache based dev environment but once moved to our Azuresites we get {“client_error”:“404 Page not found”}

It seems straight forward, it seems we’re not hitting our routes but finding exactly why is elluding us… any one have any tips on the differences in apache and azure that could cause this?

Index PHP=================================

require __DIR__ . '/../src/routes.php';// Register routes

$app->getContainer()->get("db");
$app->run();

routes.php===========================================
/**
* Version 1.0 routes file
*/
$app->get( ‘/get_version’, ‘\App\Controllers\HomeController:get_version’ );

/**
 * Version 1.0 routes uri list
 */
require 'routes/v1.php';

/**
 * Version 2.0 routes uri list
 */
require 'routes/v2.php';

routes/v1,php
<?php
$app->group(’/v1’, function () use ($app) {

    $this->get("/", function ($request, $response, $args) {
        return $response->withStatus(201)->withJson([
            'version' => 'v1.0.0']);
    });

	$app->group('/ResultInfo', function () use($app) {
		$this->post('/About', '\App\Controllers\ResultInfoController:about');
		$this->map(['GET', 'POST'], '/Search','\App\Controllers\ResultInfoController:search');
		$this->get('/New[/]', '\App\Controllers\ResultInfoController:newGet');
		$this->post('/New[/]', '\App\Controllers\ResultInfoController:newPost');
		$this->get('/{id:[\d]+}', '\App\Controllers\ResultInfoController:idGet');
		$this->put('/{id:[\d]+}', '\App\Controllers\ResultInfoController:idPut');
		$this->get('/{id}', '\App\Controllers\ResultInfoController:metricKeyGet');
		$this->put('/{id}', '\App\Controllers\ResultInfoController:metricKeyPut');
		$this->get('[/]', '\App\Controllers\ResultInfoController:baseGet');
	});


})->add(new App\Middleware\Auth());

web.config

<?xml version="1.0" ?>
<configuration>
    <system.web>
        <compilation debug="true" targetFramework="4.0" />
        <httpRuntime maxUrlLength="2000" />
    </system.web>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="rule 1K">
                    <match url=".*" />
                    <action type="Rewrite" url="/-" />
                </rule>
                <rule name="rule 2K">
                    <match url=".?" />
                    <action type="Rewrite" url="/-" />
                </rule>
                <rule name="rule 3K" stopProcessing="true">
                    <match url="^" />
                    <action type="Rewrite" url="/index.php" appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>