diff options
author | Thomas Lange <code@nerdmind.de> | 2024-12-07 19:59:22 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2024-12-07 19:59:22 +0100 |
commit | 8ee04e772c8e8c39407595014f366adf48ba9c31 (patch) | |
tree | 80516dabd0ed29dee00957396d394c601ed9b369 | |
parent | c594f2346bba05118b9ccc29241f85b6525821dd (diff) | |
download | blog-8ee04e772c8e8c39407595014f366adf48ba9c31.tar.gz blog-8ee04e772c8e8c39407595014f366adf48ba9c31.tar.xz blog-8ee04e772c8e8c39407595014f366adf48ba9c31.zip |
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.
-rw-r--r-- | .ht-nginx | 5 | ||||
-rw-r--r-- | .htaccess | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -34,3 +34,8 @@ location ~ ^/(.git|core|theme/([^/]+)/(html|lang))/ { location / { try_files $uri $uri/ /index.php?$args; } + +#=============================================================================== +# Redirect from old to new global static dir +#=============================================================================== +#rewrite ^/rsrc/(.*)$ /static/$1 permanent; @@ -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/ |