forked from botwiki/botwiki.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
38 lines (29 loc) · 1.38 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
<IfModule mod_rewrite.c>
RewriteEngine On
#May be required to access sub-directories
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteCond %{REQUEST_URI} !^/search$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)([^/])$ /$1$2/ [L,R=301]
## ???
# RewriteCond %{HTTP_HOST} ^(www\.)?botwiki\.org$ [NC]
# RewriteRule ^submit-your-bot/?$ https://docs.google.com/forms/d/1IZGM4AIUye_bp4e_8i1zXGcBqGxGAsLk61L4OeWJ5co/viewform [L,R=301,NC]
</IfModule>
<IfModule mod_env.c>
SetEnv HTTPS on
</IfModule>
# Prevent file browsing
Options -Indexes
Redirect "/ph" "/"
RedirectMatch "^/submit-your-bot/*" "https://docs.google.com/forms/d/1IZGM4AIUye_bp4e_8i1zXGcBqGxGAsLk61L4OeWJ5co/viewform"
RedirectMatch "^/survey/botmaking-01/*" "https://docs.google.com/forms/d/1MCKQSB2CCHUy7z-IDtNS-eSXQzXJWLEYGInF-Yd2CT4/viewform"
RedirectMatch "^/survey/2015-end-of-the-year/*" "https://docs.google.com/forms/d/1s__aIJK14Ez_PUG4cAafUiqpfERqhVa5AiZmoER5DVE/viewform"
RedirectMatch "^/botmakers/erin/*" "https://botwiki.org/interviews/erin"
RedirectMatch "^/interviews/*$" "https://botwiki.org/tag/interview"
RedirectMatch "^/tag/*$" "https://botwiki.org/tag/all-tags"