You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

robots.text.erb 968B

123456789101112131415161718192021222324
  1. User-agent: *
  2. <% if Setting.login_required? -%>
  3. Disallow: /
  4. <% else -%>
  5. <% @projects.each do |project| -%>
  6. <% [project, project.id].each do |p| -%>
  7. Disallow: <%= url_for(:controller => 'repositories', :action => :show, :id => p) %>
  8. Disallow: <%= url_for(project_issues_path(:project_id => p)) %>
  9. Disallow: <%= url_for(project_activity_path(:id => p)) %>
  10. <% end -%>
  11. <% end -%>
  12. Disallow: <%= url_for(issues_gantt_path) %>
  13. Disallow: <%= url_for(issues_calendar_path) %>
  14. Disallow: <%= url_for(activity_path) %>
  15. Disallow: <%= url_for(search_path) %>
  16. Disallow: <%= url_for(issues_path) %>?*sort=
  17. Disallow: <%= url_for(issues_path) %>?*query_id=
  18. Disallow: <%= url_for(issues_path) %>?*set_filter=
  19. Disallow: <%= url_for(issues_path(:trailing_slash => true)) %>*.pdf$
  20. Disallow: <%= url_for(projects_path(:trailing_slash => true)) %>*.pdf$
  21. Disallow: <%= url_for(signin_path) %>
  22. Disallow: <%= url_for(register_path) %>
  23. Disallow: <%= url_for(lost_password_path) %>
  24. <% end -%>