annotate modules/website/files/conf.extra/cms_rewrites.conf @ 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 956e484adc12
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 RewriteEngine on
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 RewriteRule ^/([A-Z][a-zA-Z]+)/([a-zA-Z]+)([0-9]+)/$ /$1/$2_$3.html [L,R=301]
117
3fdde0638538 Redirect dumb bots that removed the ID number to the main module page
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
3 RewriteRule ^/([A-Z][a-zA-Z]+)/([a-zA-Z]+)_\.html$ /$1/ [L,R=301]
0
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 RewriteRule ^/(Downloads/author)/([^/]+)/$ /$1.html?name=$2 [L,R=301,QSA]
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 RewriteRule ^/(Article)s(/.*)?$ /$1$2 [L,R=301]
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 RewriteRule ^/(Register|Login|User|misc|ContactUs)/(([a-zA-Z]+)(_pg([0-9]+)|_([0-9]+|[0-9a-zA-Z]{2,})(_pg([0-9]+))?)?\.html)?$ /$1.php?act=$3&id=$6&page=$8$5 [L,QSA]
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 RewriteRule ^/([a-zA-Z]+)/(([a-zA-Z]+)(_pg([0-9]+)|_([0-9]+|[0-9a-zA-Z\.]{2,})(_pg([0-9]+))?)?\.(html|xml|rar|zip|exe|jpg|png|gif|tga|7z|teamcolour))?$ /modules.php?mod=$1&act=$3&id=$6&page=$8$5 [L,QSA]
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 RewriteRule ^/(Register|Login|User|misc|ContactUs|[A-Z][a-zA-Z]+)/index\.(php|htm)$ /$1/ [L,R=301]
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 RewriteRule ^/([A-Z][a-zA-Z]+|misc)/([a-zA-Z]+)/?$ /$1/$2.html [L,R=301]
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 RewriteRule ^/([A-Z][a-zA-Z]+|misc)/([a-zA-Z]+)/?([0-9]+)/?$ /$1/$2_$3.html [L,R=301]
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 RewriteRule ^/([A-Z][a-zA-Z]+|misc)/([a-zA-Z]+)/?([0-9]+)/pg([0-9]+)/?$ /$1/$2_$3_pg$4.html [L,R=301]
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 RewriteRule ^/([A-Z][a-zA-Z]+|misc)$ /$1/ [L,R=301]
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 RewriteRule ^/(.+\.html)/.*$ /$1 [l,R=301]
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 ErrorDocument 404 /error.php