mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
adding support for robots.txt
This commit is contained in:
@@ -28,6 +28,7 @@ rewrites = (#these first two rules prevent the .embed rewrite from
|
||||
#This next rewrite makes it so that all the embed stuff works.
|
||||
("^(.*)(?<!button)(\.js)$", "$1.embed"),
|
||||
("^/favicon.ico$", "/static/favicon.ico"),
|
||||
("^/robots.txt$", "/static/robots.txt"),
|
||||
("^/akamai-sureroute-test-object.html$", "/static/sureroute.html"),
|
||||
("^/apple-touch-icon.png$", "/static/apple-touch-icon.png"))
|
||||
|
||||
|
||||
5
r2/r2/public/static/robots.txt
Normal file
5
r2/r2/public/static/robots.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
User-Agent: *
|
||||
Disallow: /goto
|
||||
Disallow: /*after=*
|
||||
Disallow: /*before=*
|
||||
Allow: /
|
||||
Reference in New Issue
Block a user