From 8ee04e772c8e8c39407595014f366adf48ba9c31 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sat, 7 Dec 2024 19:59:22 +0100 Subject: Server config: Add redirect option for static dir Add option to redirect requests from the old to the new global static directory in the server configuration files for Apache and nginx. --- .htaccess | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.htaccess') diff --git a/.htaccess b/.htaccess index 3859e27..55c32d3 100644 --- a/.htaccess +++ b/.htaccess @@ -41,3 +41,8 @@ RewriteRule ^(.git|core|theme/([^/]+)/(html|lang))/ - [F] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] + +#=============================================================================== +# Redirect from old to new global static dir +#=============================================================================== +#Redirect 301 /rsrc/ /static/ -- cgit v1.2.3