Use correct redirect codes

no permanent redirects for year-dependent URLs
This commit is contained in:
Stefan Schlott 2013-08-26 08:58:15 +02:00
parent 3f8d19891c
commit 17eb25ef6d

View file

@ -1,7 +1,7 @@
ErrorDocument 404 /404/index.html ErrorDocument 404 /404/index.html
RedirectMatch 301 ^/events/$ /events/<%= Time.now.year %>/ RedirectMatch 303 ^/events/$ /events/<%= Time.now.year %>/
RedirectMatch 301 ^/activities/$ /activities/<%= Time.now.year %>/ RedirectMatch 303 ^/activities/$ /activities/<%= Time.now.year %>/
RedirectMatch 301 ^/archives/articles/$ /archives/articles/<%= latest_articles(1)[0][:created_at].year %>/ RedirectMatch 303 ^/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 ^/archives/twitter/$ /archives/twitter/<%= twitter_grouped_by_month.keys.sort.last %>/