-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow search indexing in promo mode #354
Conversation
app.get('/', function (req, res) { | ||
res.redirect('/docs') | ||
}) | ||
|
||
app.get('/robots.txt', function (req, res) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this disallow anyway?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no this allows all: http://tools.seobook.com/robots-txt/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I was misreading as it still says Disallow
.
For the sake of clarity, mind using:
User-agent: *
Allow: /
app.get('/', function (req, res) { | ||
res.redirect('/docs') | ||
}) | ||
|
||
app.get('/robots.txt', function (req, res) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment for why indexing is enabled?
7b0d6c3
to
4d53696
Compare
@edwardhorsford look alright now? |
Stylistically yes, but still need to test. |
Looks good to me 👍 |
this fixes #329