Closed (fixed)
Project:
RobotsTxt
Version:
7.x-1.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2019 at 22:17 UTC
Updated:
26 Feb 2019 at 10:19 UTC
Jump to comment: Most recent
Trying to understand how this is used. Since it tells me to delete the site's robots.txt file, I assumed it would create a new one. I have a multi site (two domains), and a number of subdomains for each (www., qa. , dev.). The subdomains would use the same values. How do I create different robots.txt for the two domains? Is there a user's guide I might have missed?
Sorry to seem so clueless, but didn't see anything in the readme or code. Looks like a great module, thanks.
Comments
Comment #2
pglatz commentedComment #3
hass commentedNo. Suggest testing the module first.
Comment #4
pglatz commentedI did test the module and see it stores the information in the database. I don't know what to do with it; do I cut and paste it to a robots.txt file? My impression was this module would allow creating different versions of the file for different subhosts, which would be very useful.
Comment #5
bryancs commentedShort answer: I think NO.
I am running a multi-site Drupal 8 installation and uses this module.
Each site uses different robots.txt but all sub-domains under a site uses the same robots.txt.
If you follow the installation instruction here, you should be able to add individual robots.txt values to each site when you go to admin/config/search/robotstxt
Also, you can set default robots.txt per site by adding a default.robots.txt file under web/sites/siteA.com and/or web/sites/siteB.com.
Test it by accessing siteA.com/robots.txt or siteB.com/robots.txt