-
Notifications
You must be signed in to change notification settings - Fork 5
/
.htaccess
45 lines (37 loc) · 1.76 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
---
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html
Redirect permanent /pub http://download.tuxfamily.org/plugfr
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP:X-Forwarded-Proto} !=https
RewriteCond %{REQUEST_URI} !^/.well-known/
RewriteRule ^ https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]
RewriteCond %{HTTP_HOST} ^www.plugfr.org$
RewriteRule ^(.*) http://plugfr.org/$1 [QSA,L,R=301]
RewriteCond %{QUERY_STRING} id_article=(.+)
RewriteRule ^spip/article.php3 /r/%1? [R=301]
RewriteCond %{QUERY_STRING} id_rubrique=(.+)
RewriteRule ^spip/rubrique.php3 /archives/categories.html? [R=301,L]
RewriteRule 7-mai-2010 /r/167 [R=301,L]
RewriteRule reunions/1-octobre/ /r/173 [R=301,L]
RewriteRule reunions/6-septembre-2012/ /reunions/7-septembre-2012/ [R=301,L]
RewriteRule reunions/6-septembre-2014/ /reunions/5-septembre-2014/ [R=301,L]
{% for post in site.posts %}
{% if post.post_id != null %}RewriteRule ^r/{{ post.post_id }}/?$ {{ post.url }} [R=301,L]{% endif %}
{% endfor %}
RewriteRule ^r/16$ / [R=301,L]
RewriteRule ^s5(.+) /pub/s5$1 [R=301,L]
RewriteRule ^r/(57|103)$ /association/mailing-lists.html [R=301,L]
RewriteRule ^r/93$ /association/statuts.html [R=301,L]
RewriteRule ^spip/?$ / [R=301,L]
RewriteRule ^spip/contact.php /contact/ [R=301,L]
RewriteRule ^spip/backend.php3 /feeds/articles.xml [R=301,L]
RewriteRule ^spip/index.php3 / [R=301,L]
RewriteRule ^spip/auteur.php3 / [R=301,L]
RewriteRule ^wiki(.+)? http://wiki.plugfr.org$1 [R=301,L]
RewriteRule ^list-archives(.+)? http://lists.plugfr.org/archives$1 [R=301,L]
RewriteRule ^stats/pisg/? http://obelix.gyptis.org/stats/pisg/ [R=301,L]
</IfModule>