diff --git a/modules/openapi-generator/src/main/resources/php-slim-server/.htaccess b/modules/openapi-generator/src/main/resources/php-slim-server/.htaccess index e47b5fb8a0c..f6a2ceb3952 100644 --- a/modules/openapi-generator/src/main/resources/php-slim-server/.htaccess +++ b/modules/openapi-generator/src/main/resources/php-slim-server/.htaccess @@ -1,5 +1,6 @@ RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f - RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L] + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^ index.php [QSA,L] \ No newline at end of file diff --git a/samples/server/petstore-security-test/php-slim/.htaccess b/samples/server/petstore-security-test/php-slim/.htaccess index e47b5fb8a0c..f6a2ceb3952 100644 --- a/samples/server/petstore-security-test/php-slim/.htaccess +++ b/samples/server/petstore-security-test/php-slim/.htaccess @@ -1,5 +1,6 @@ RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f - RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L] + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^ index.php [QSA,L] \ No newline at end of file diff --git a/samples/server/petstore/php-slim/.htaccess b/samples/server/petstore/php-slim/.htaccess index e47b5fb8a0c..f6a2ceb3952 100644 --- a/samples/server/petstore/php-slim/.htaccess +++ b/samples/server/petstore/php-slim/.htaccess @@ -1,5 +1,6 @@ RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f - RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L] + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^ index.php [QSA,L] \ No newline at end of file