From 17eb25ef6db3f343ef96e5da2cec77dc05cfa872 Mon Sep 17 00:00:00 2001 From: Stefan Schlott Date: Mon, 26 Aug 2013 08:58:15 +0200 Subject: [PATCH] Use correct redirect codes no permanent redirects for year-dependent URLs --- content/htaccess.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/htaccess.txt b/content/htaccess.txt index 69f2b2e0..4de67414 100644 --- a/content/htaccess.txt +++ b/content/htaccess.txt @@ -1,7 +1,7 @@ ErrorDocument 404 /404/index.html -RedirectMatch 301 ^/events/$ /events/<%= Time.now.year %>/ -RedirectMatch 301 ^/activities/$ /activities/<%= Time.now.year %>/ -RedirectMatch 301 ^/archives/articles/$ /archives/articles/<%= latest_articles(1)[0][:created_at].year %>/ -RedirectMatch 301 ^/archives/twitter/$ /archives/twitter/<%= twitter_grouped_by_month.keys.sort.last %>/ +RedirectMatch 303 ^/events/$ /events/<%= Time.now.year %>/ +RedirectMatch 303 ^/activities/$ /activities/<%= Time.now.year %>/ +RedirectMatch 303 ^/archives/articles/$ /archives/articles/<%= latest_articles(1)[0][:created_at].year %>/ +RedirectMatch 303 ^/archives/twitter/$ /archives/twitter/<%= twitter_grouped_by_month.keys.sort.last %>/