Add per-tenant sitemap to robots.txt file
While we ping some search engines (currently, only Google) when generating the sitemap files, we weren't telling search engines accessing through the `robots.txt` file where to find the sitemap. Now we're doing so, using the right sitemap file for the right tenant.
This commit is contained in:
7
app/controllers/robots_controller.rb
Normal file
7
app/controllers/robots_controller.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class RobotsController < ApplicationController
|
||||
skip_authorization_check
|
||||
|
||||
def index
|
||||
respond_to :text
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user