Use correct redirect codes
no permanent redirects for year-dependent URLs
This commit is contained in:
parent
3f8d19891c
commit
17eb25ef6d
1 changed files with 4 additions and 4 deletions
|
|
@ -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 %>/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue