Remove the trailing slash

This commit is contained in:
Oliver Davies 2021-07-20 08:17:01 +01:00 committed by Oliver Davies
parent c6a1ef562c
commit 3b9f8f485e

View file

@ -13,10 +13,17 @@ server {
location / {
root /app;
index index.html index.htm;
try_files $uri/index.html $uri.html $uri/ $uri =404;
error_page 404 /404.html;
}
error_page 404 /404.html;
location ~ ^(.+)/$ {
return 301 $1$is_args$args;
}
rewrite ^/10-useful-drupal-6-modules-i-use-every-project$ /blog/10-useful-drupal-6-modules;
rewrite ^/2010/04/05/styling-drupal-6s-taxonomy-lists-with-php-css-and-jquery$ /blog/style-drupal-6s-taxonomy-lists-php-css-jquery;