mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 16:43:45 +08:00
FIX: Remove paths from robots.txt in favor of noindex header
Google no longer supports the use of robots.txt to block indexing. See https://support.google.com/webmasters/answer/6062608 and https://support.google.com/webmasters/answer/93710 Previous commits have added the `noindex` header to appropriate pages, now we need to remove the paths from robots.txt so the pages can be crawled. Follow up to:13f229808a
b6765aac4b
676be3a853
07b728c5e5
c94e6a9a66
This commit is contained in:
parent
d156b7749d
commit
417bdcb53a
|
@ -10,14 +10,6 @@ class RobotsTxtController < ApplicationController
|
|||
DISALLOWED_PATHS ||= %w{
|
||||
/auth/
|
||||
/assets/browser-update*.js
|
||||
/users/
|
||||
/u/
|
||||
/my/
|
||||
/badges/
|
||||
/search
|
||||
/search/
|
||||
/tags
|
||||
/tags/
|
||||
/email/
|
||||
/session
|
||||
/session/
|
||||
|
@ -27,11 +19,6 @@ class RobotsTxtController < ApplicationController
|
|||
/user-api-key/
|
||||
/*?api_key*
|
||||
/*?*api_key*
|
||||
/groups
|
||||
/groups/
|
||||
/t/*/*.rss
|
||||
/tags/*.rss
|
||||
/c/*.rss
|
||||
}
|
||||
|
||||
def index
|
||||
|
|
Loading…
Reference in New Issue
Block a user