From 6c2838e02e85f3a4e69d8e18c12f725c5b86fc4d Mon Sep 17 00:00:00 2001 From: Art Furrer <2823246+bonham@users.noreply.github.com> Date: Sat, 24 Sep 2022 23:07:31 +0200 Subject: [PATCH] Remove trailing slash in apache redirect rule When deploying to a subfolder instead of root, the example would not work since apache will redirect from `/subfolder/something` to `/index.html` instead of `/subfolder/something` to `/subfolder/index.html` If the trailing slash is removed as proposed, the example would work for both - deployment to root or to subfolder. --- packages/docs/guide/essentials/history-mode.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/guide/essentials/history-mode.md b/packages/docs/guide/essentials/history-mode.md index 3200bd14d..0a5de42a3 100644 --- a/packages/docs/guide/essentials/history-mode.md +++ b/packages/docs/guide/essentials/history-mode.md @@ -79,7 +79,7 @@ While it's not recommended, you can use this mode inside Browser applications bu RewriteRule ^index\.html$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d - RewriteRule . /index.html [L] + RewriteRule . index.html [L] ```