From a6998a912dfd51bf12a01aac57daaf283a724a70 Mon Sep 17 00:00:00 2001 From: Mateusz Wojczal Date: Wed, 20 Nov 2024 22:01:50 +0100 Subject: [PATCH] rewrite all (#511) Co-authored-by: Mateusz Wojczal --- Dockerfile | 2 ++ public/.htaccess | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 public/.htaccess diff --git a/Dockerfile b/Dockerfile index 8a56cc00..7a4cd6f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,3 +19,5 @@ COPY entrypoint.sh /usr/local/bin/httpd-foreground ENTRYPOINT /usr/local/bin/httpd-foreground COPY --from=base /home/node/app/dist /var/www/html COPY config/php/index.php /var/www/html/index.php + +RUN a2enmod rewrite diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 00000000..48a7a3d1 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,4 @@ +RewriteEngine on +RewriteCond %{REQUEST_FILENAME} !-d +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule . index.php [L] \ No newline at end of file