summaryrefslogtreecommitdiff
path: root/extras/htaccess
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2013-05-30 13:46:39 +0200
committerSébastien Dailly <sebastien@chimrod.com>2013-05-30 13:48:25 +0200
commit0280e9215fd88ab8aa1b0771d3e6a2df739efa33 (patch)
treea71586e17a6296c67e80603e75e62747df1fb739 /extras/htaccess
parent12ac988fec5b95fe72370f7fb6ce7189e20272b0 (diff)
Corrected old rss feed url
Diffstat (limited to 'extras/htaccess')
-rw-r--r--extras/htaccess9
1 files changed, 9 insertions, 0 deletions
diff --git a/extras/htaccess b/extras/htaccess
index 408c2c5..8f5358f 100644
--- a/extras/htaccess
+++ b/extras/htaccess
@@ -9,3 +9,12 @@ DirectoryIndex index.html /404.htm
# Flux cassé depuis la maj de pelican
Redirect /feeds/Libre.atom /feeds/libre.atom
Redirect /feeds/Perso.atom /feeds/perso.atom
+
+# Réécriture pour l'ancien flux rss
+<IfModule mod_rewrite.c>
+ RewriteEngine On
+ RewriteBase /
+ RewriteCond %{QUERY_STRING} ^feed=rss2$ [NC]
+ RewriteRule ^$ /feed [NC,L,R=301]
+</IfModule>
+