diff options
author | francis <francis> | 2008-09-15 16:16:35 +0000 |
---|---|---|
committer | francis <francis> | 2008-09-15 16:16:35 +0000 |
commit | 44e8033b84b334624658bb938f0202be2e09440b (patch) | |
tree | bfc81afb2a445576a98287d94b28ba7d441fc2b5 | |
parent | 3a5506de8893280c8889c17c675f85c73b420390 (diff) |
Move similar request URLs, so can block in robots.txt easily, and block them there.
(Yes, old similar request URLs are breaking with this change, tough doesn't seem
important enough)
-rw-r--r-- | config/routes.rb | 4 | ||||
-rw-r--r-- | public/robots.txt | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb index 98b117958..d93d7004d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: routes.rb,v 1.73 2008-09-08 02:05:14 francis Exp $ +# $Id: routes.rb,v 1.74 2008-09-15 16:16:35 francis Exp $ ActionController::Routing::Routes.draw do |map| @@ -34,7 +34,7 @@ ActionController::Routing::Routes.draw do |map| request.new_request_to_body '/new/:public_body_id', :action => 'new' request.show_request '/request/:url_title', :action => 'show' - request.similar_request '/request/:url_title/similar', :action => 'similar' + request.similar_request '/similar/request/:url_title', :action => 'similar' request.describe_state '/request/:id/describe', :action => 'describe_state' request.show_response_no_followup '/request/:id/response', :action => 'show_response' diff --git a/public/robots.txt b/public/robots.txt index 4ab9e89fe..783b0e7ed 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1 +1,5 @@ -# See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
\ No newline at end of file +# See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file + +User-agent: * +Disallow: /similar/ + |