From d374e1c160349738ec409510080a8a9869d101ef Mon Sep 17 00:00:00 2001 From: Yuriy Belenko Date: Tue, 21 Aug 2018 08:59:29 +0500 Subject: [PATCH] [Slim] Official htaccess (#838) * [Slim] Change htaccess to official Slim docs contains more simple htaccess example. https://www.slimframework.com/docs/v3/start/web-servers.html#apache-configuration * [Slim] Refresh samples --- .../src/main/resources/php-slim-server/.htaccess | 3 ++- samples/server/petstore-security-test/php-slim/.htaccess | 3 ++- samples/server/petstore/php-slim/.htaccess | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) 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