From a9fb08fc331502fc92586d1bdcce3cebd09f9ac7 Mon Sep 17 00:00:00 2001 From: CritasWang Date: Thu, 9 Jan 2025 10:05:29 +0800 Subject: [PATCH] add htaccess fot 404 be like https://github.com/apache/www-site/blob/main/content/.htaccess --- src/.vuepress/public/.htaccess | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/.vuepress/public/.htaccess diff --git a/src/.vuepress/public/.htaccess b/src/.vuepress/public/.htaccess new file mode 100644 index 000000000..7c7176574 --- /dev/null +++ b/src/.vuepress/public/.htaccess @@ -0,0 +1,7 @@ +RewriteEngine On + +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule . /404.html [L] + +ErrorDocument 404 /404.html