changeset 117:3fdde0638538 puppet-3.6

Redirect dumb bots that removed the ID number to the main module page
author IBBoard <dev@ibboard.co.uk>
date Fri, 08 Jul 2016 20:34:29 +0100
parents 3c4f495d4eac
children f0a86e36d33f
files modules/website/files/conf.extra/cms_rewrites.conf
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/website/files/conf.extra/cms_rewrites.conf	Wed Jun 29 20:49:56 2016 +0100
+++ b/modules/website/files/conf.extra/cms_rewrites.conf	Fri Jul 08 20:34:29 2016 +0100
@@ -1,5 +1,6 @@
 RewriteEngine on 
 RewriteRule ^/([A-Z][a-zA-Z]+)/([a-zA-Z]+)([0-9]+)/$ /$1/$2_$3.html [L,R=301]
+RewriteRule ^/([A-Z][a-zA-Z]+)/([a-zA-Z]+)_\.html$ /$1/ [L,R=301]
 RewriteRule ^/(Downloads/author)/([^/]+)/$ /$1.html?name=$2 [L,R=301,QSA]
 RewriteRule ^/(Article)s(/.*)?$ /$1$2 [L,R=301]