mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
🐛 Fixed /p/
redirects not being indexed by search engines (#19864)
ref [ENG-741](https://linear.app/tryghost/issue/ENG-741/🐛-our-robotstxt-config-causes-indexing-issues-for-customers-who-have) `/p/` has been dropped from the `robots.txt` file so that search engines can index the pages at these locations. In the event that the page at the location is a preview page, the existing robots meta tag on the page will prevent indexing.
This commit is contained in:
parent
39da5a1f88
commit
60d81b2003
2 changed files with 0 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Sitemap: {{blog-url}}/sitemap.xml
|
Sitemap: {{blog-url}}/sitemap.xml
|
||||||
Disallow: /ghost/
|
Disallow: /ghost/
|
||||||
Disallow: /p/
|
|
||||||
Disallow: /email/
|
Disallow: /email/
|
||||||
Disallow: /r/
|
Disallow: /r/
|
||||||
Disallow: /webmentions/receive/
|
Disallow: /webmentions/receive/
|
||||||
|
|
|
@ -319,12 +319,9 @@ describe('Default Frontend routing', function () {
|
||||||
.expect(200)
|
.expect(200)
|
||||||
.expect(assertCorrectFrontendHeaders);
|
.expect(assertCorrectFrontendHeaders);
|
||||||
|
|
||||||
// The response here is a publicly documented format users rely on
|
|
||||||
// In case it's changed remember to update the docs at https://ghost.org/help/modifying-robots-txt/
|
|
||||||
res.text.should.equal(
|
res.text.should.equal(
|
||||||
'User-agent: *\n' +
|
'User-agent: *\n' +
|
||||||
'Sitemap: http://127.0.0.1:2369/sitemap.xml\nDisallow: /ghost/\n' +
|
'Sitemap: http://127.0.0.1:2369/sitemap.xml\nDisallow: /ghost/\n' +
|
||||||
'Disallow: /p/\n' +
|
|
||||||
'Disallow: /email/\n' +
|
'Disallow: /email/\n' +
|
||||||
'Disallow: /r/\n' +
|
'Disallow: /r/\n' +
|
||||||
'Disallow: /webmentions/receive/\n'
|
'Disallow: /webmentions/receive/\n'
|
||||||
|
|
Loading…
Reference in a new issue