From 0a5d933ecf877fd6f148d05fba4e8f899cfd3796 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 16 Jul 2021 00:16:12 +0100 Subject: [PATCH] Redirect all articles paths --- tools/docker/images/nginx/root/etc/nginx/conf.d/default.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/docker/images/nginx/root/etc/nginx/conf.d/default.conf b/tools/docker/images/nginx/root/etc/nginx/conf.d/default.conf index 187e9e21..c35e0009 100644 --- a/tools/docker/images/nginx/root/etc/nginx/conf.d/default.conf +++ b/tools/docker/images/nginx/root/etc/nginx/conf.d/default.conf @@ -50,6 +50,7 @@ server { rewrite ^/ansistrano-code$ https://github.com/opdavies/dransible; rewrite ^/ansistrano-demo$ https://www.youtube.com/watch?v=PLS4ET7FAcU; rewrite ^/ansistrano-slides$ /talks/deploying-php-ansible-ansistrano; + rewrite ^/articles/(.*)$ /blog/$1; rewrite ^/articles/10-useful-drupal-6-modules$ /blog/10-useful-drupal-6-modules; rewrite ^/articles/2010/04/05/style-drupal-6s-taxonomy-lists-php-css-and-jquery$ /blog/2010/04/05/style-drupal-6s-taxonomy-lists-php-css-and-jquery; rewrite ^/articles/2010/04/28/using-imagecache-and-imagecrop-my-portfolio$ /blog/2010/04/28/using-imagecache-and-imagecrop-my-portfolio;