1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-17 12:52:55 +00:00
redmine/app/views/welcome/robots.text.erb
Go MAEDA feccfdd985 robots.txt: disallow crawling issues list with a query string (#6734).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19844 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-07-02 03:02:44 +00:00

16 lines
648 B
Plaintext

User-agent: *
<% @projects.each do |project| -%>
<% [project, project.id].each do |p| -%>
Disallow: <%= url_for(:controller => 'repositories', :action => :show, :id => p) %>
Disallow: <%= url_for(project_issues_path(:project_id => p)) %>
Disallow: <%= url_for(project_activity_path(:id => p)) %>
<% end -%>
<% end -%>
Disallow: <%= url_for(issues_gantt_path) %>
Disallow: <%= url_for(issues_calendar_path) %>
Disallow: <%= url_for(activity_path) %>
Disallow: <%= url_for(search_path) %>
Disallow: <%= url_for(issues_path(:sort => '')) %>
Disallow: <%= url_for(issues_path(:query_id => '')) %>
Disallow: <%= url_for(issues_path) %>?*set_filter=