Skip to content

Commit d2b36c9

Browse files
committed
try to help poor sitemap
1 parent 272add1 commit d2b36c9

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

public/.htaccess

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,16 @@
2222
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
2323
RewriteRule (.*)$ /$1/ [R=301,L]
2424
</IfModule>
25+
26+
# ✅ Optional: better headers for sitemap & robots
27+
<IfModule mod_headers.c>
28+
<Files "sitemap.xml">
29+
Header unset Set-Cookie
30+
Header set Cache-Control "public, max-age=86400"
31+
Header set Content-Type "application/xml; charset=UTF-8"
32+
</Files>
33+
<Files "robots.txt">
34+
Header set Content-Type "text/plain; charset=UTF-8"
35+
</Files>
36+
</IfModule>
37+

public/robots.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
User-agent: *
2+
Disallow:
3+
4+
Sitemap: https://ras.ece.utexas.edu/sitemap.xml
5+

0 commit comments

Comments
 (0)