-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
58 lines (45 loc) · 1.95 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>
RewriteEngine On
RewriteBase /
###### FEEDBURNER ######
# Redirect global post and comment feeds to Feedburner without loading WP
RewriteCond %{REQUEST_URI} ^/keepers/(feed|wp-atom|wp-feed|wp-rss|wp-rdf).* [NC,OR]
RewriteCond %{QUERY_STRING} .*feed=.* [NC]
# Ditch if they want a comment feed or a feed limited to posts with comments
RewriteCond %{QUERY_STRING} !.*withcomments=.* [NC]
# Any specification of a post ID we skip since it's post specific
RewriteCond %{QUERY_STRING} !.*p=.* [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*(FeedBurner|FeedValidator|Recent) [NC]
RewriteRule .* http://feeds.feedburner.com/animalkeepers? [L,R=307]
###### /FEEDBURNER ######
RewriteCond %{HTTP_HOST} ^blogs\.lifeandscience\.org [NC]
RewriteRule ^(.*) http://blogs.ncmls.org/$1 [L,R]
RewriteCond %{REQUEST_URI} \.html$
RewriteCond %{REQUEST_URI} !editimage.html$
RewriteRule (.*) ${animal-department:$1} [R,L]
RewriteRule ^$ http://www.ncmls.org/blogs [L]
RewriteRule ^gregdodge http://blogs.ncmls.org/greg-dodge [L]
RewriteRule ^greg_dodge http://blogs.ncmls.org/greg-dodge [L]
RewriteRule ^search/label/(.*) http://blogs.ncmls.org/keepers/tag/$1 [L]
#RewriteRule ^keepers http://mlsanimaldepartment.blogspot.com [L]
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteCond %{REQUEST_URI} !.*files/blogger.*
RewriteCond %{REQUEST_URI} !.*files//blogger.*
#RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ $1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]