mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
🐛 Removed redirects from search engine indexing (#15617)
refs https://github.com/TryGhost/Team/issues/2072 Google is indexing our redirects and storign the redirected content against the redirect URL in search results. This seems to be caused by us using a 302 redirect rather than 301. We don't want to switch to a 301 however, so that we can support the ability to update redirects in the future.
This commit is contained in:
parent
bd0f4b4b8c
commit
8afc6777c0
@ -3,3 +3,4 @@ Sitemap: {{blog-url}}/sitemap.xml
|
||||
Disallow: /ghost/
|
||||
Disallow: /p/
|
||||
Disallow: /email/
|
||||
Disallow: /r/
|
||||
|
@ -326,7 +326,8 @@ describe('Default Frontend routing', function () {
|
||||
'User-agent: *\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'
|
||||
);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user