Skip to content

Commit 9ec6c7e

Browse files
committed
Update htaccess & robots.txt
1 parent c56224c commit 9ec6c7e

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

static/.htaccess

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ RewriteRule ^(.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
194194
# Disable the "Index of" pages
195195
Options -Indexes
196196

197+
# Custom 404
198+
ErrorDocument 404 /404.html
199+
197200
# Cache policy. We don't want anything too aggressive in case we update the docs.
198201
<FilesMatch ".(ttf|woff2|woff)$">
199202
Header set Cache-Control "max-age=15768000, public"
@@ -210,6 +213,6 @@ Header set Cache-Control "max-age=3600, public"
210213
Header unset ETag
211214
FileETag none
212215

213-
# Resources Hints
216+
# Resources Hints
214217
Header add Link '<https://search.o2swit.ch>; rel=dns-prefetch'
215218
Header add Link '</img/misc/o2switch-logo-dark-bg.svg>; rel=preload; as=image; type=image/svg+xml'

static/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
User-Agent: *
22
Allow: /
33
Disallow: /tags/*
4+
Disallow: /search*
5+
Disallow: /*?*q=

0 commit comments

Comments
 (0)