Permalink
Browse files

Redirect old survey pages to /closed

  • Loading branch information...
1 parent f748c8c commit b5ea1e2d04a72daa08f639e1ed3f35823de9db4a @michaelbarton committed Mar 22, 2012
View
@@ -2,8 +2,12 @@ require 'rack/contrib/try_static'
require 'rack/rewrite'
use Rack::Rewrite do
- r302 "/analysis/", "/"
- r302 "/posts/", "/"
+
+ # Url bases for analysis and posts pages
+ r302 /(\/analysis|posts)\/?$/, "/"
+
+ # Pages from survey collection
+ r302 /\/questionnaire|thank-you|done\/?/, "/closed"
end
use Rack::TryStatic,
@@ -0,0 +1,11 @@
+---
+ title: Survey Closed
+ disable_comments: true
+---
+
+The bioinformatics survey is now closed. Thank for taking the time to complete
+the questionnaire. Your responses are appreciated and have created a public
+data set that describes our field and the people within it. You can find the
+latest news and updates on the bioinformatics survey on [the home page.](/)
+
+
@@ -1,7 +0,0 @@
----
- title: All Questionnaires Answered
----
-
-Thank you again. The collected data will be released into the public domain at
-the end of the survey. If you have suggestions or comments about this survey
-please add them below.
@@ -1,7 +0,0 @@
----
- title: Questionnaire
- disable_comments: true
----
-
-The bioinformatics survey is now closed. Thank you to everyone who
-participated.
@@ -1,9 +0,0 @@
----
- title: Thank You!
- isable_comments: true
----
-
-Thank for taking the time to complete the questionnaire. Your responses are
-appreciated and will help generate a public data set that describes our field
-and the people withing it. The data will be released at the end of the survey
-collection period.

0 comments on commit b5ea1e2

Please sign in to comment.