Skip to content

Commit

Permalink
Merge pull request #142 from HSLdevcom/old-reittiopas-seo
Browse files Browse the repository at this point in the history
Old reittiopas seo
  • Loading branch information
vesameskanen authored Nov 17, 2020
2 parents 36798bc + c4a0eae commit 5a6c583
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ http {
server_name www.reittiopas.fi m.reittiopas.fi reittiopas.fi uusi.reittiopas.fi uusi.reittiopas.hsl.fi;
listen 8080;

# Prevent search engines from indexing the site
add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";

location = /sw.js {
proxy_pass https://serviceworker.blob.core.windows.net/serviceworker/destroy-sw.js;
proxy_set_header Host serviceworker.blob.core.windows.net;
Expand Down
1 change: 1 addition & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ describe('hsl ui', function() {
testRedirect('reittiopas.fi','/kissa','https://reittiopas.hsl.fi/kissa');
testRedirect('reittiopas.fi','/','https://uusi.hsl.fi/?fromJourneyPlanner=true');
testRedirect('www.reittiopas.fi','/kissa','https://reittiopas.hsl.fi/kissa', true);
testResponseHeader('www.reittiopas.fi','/', 'x-robots-tag', 'noindex, nofollow, nosnippet, noarchive');
testRedirect('m.reittiopas.fi','/kissa','https://reittiopas.hsl.fi/kissa');
testRedirect('dev.reittiopas.fi','/kissa','https://dev.reittiopas.fi/kissa');

Expand Down

0 comments on commit 5a6c583

Please sign in to comment.