From bd73e01e574fc1ebcbc5d0c76223cfd719c8c985 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 1 Aug 2024 00:46:31 +0100 Subject: [PATCH] Set redirect status codes to 301 --- source/.htaccess | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/.htaccess b/source/.htaccess index 9766622c..e07431c2 100644 --- a/source/.htaccess +++ b/source/.htaccess @@ -13,11 +13,11 @@ RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{REQUEST_URI} !/$ RewriteCond %{REQUEST_FILENAME}/index.html -f RewriteRule (.*) $1/index.html [L] -RewriteRule ^(.*)/$ /$1 [L,R] +RewriteRule ^(.*)/$ /$1 [L,R=301] # Remove index.html from URLs. RewriteCond %{THE_REQUEST} \s/+(.*/)?index\.html[\s?] [NC] -RewriteRule ^(.*)index\.html$ /$1 [L] +RewriteRule ^(.*)index\.html$ /$1 [L,R=301] ErrorDocument 404 /404/index.html