From 17ce5ec672ce506ada2b036008c836fd346a10cf Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Thu, 14 Nov 2019 15:08:20 +0900 Subject: [PATCH] add redirect rule. --- public/.htaccess | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 public/.htaccess diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..c0d9bbc --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,8 @@ +RewriteEngine on +RewriteBase / + +RewriteCond %{QUERY_STRING} (^|&)file_id=([0-9]+)($|&) +RewriteRule ^modules/xoonips/download.php /database/file/%2? [R=301,L] + +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule . /index.html [L]