Skip to content

Commit 7b06a15

Browse files
committed
Update .htaccess for http to https redirect
1 parent 6934ade commit 7b06a15

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

src/_data/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "Sparna.fr",
3-
"description": "Sparna : Web of Data / Metadata Structure / Knowledge Graph / Artificial Intelligence",
3+
"description": "Linked Data - Knowledge Graphs - Ontologies - AI | Sparna",
44
"url": "https://www.sparna.fr",
55
"author": {
66
"name": "Thomas Francart",

src/_layouts/sparna.njk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@
2828
<script type='text/javascript' src="{{ '/assets/js/sparna.js' | relative(page) }}"></script>
2929

3030
<!-- Jetpack Open Graph Tags -->
31-
<meta property="og:type" content="website" />
31+
<meta property="og:type" content="article" />
3232
<meta property="og:title" content="Sparna" />
3333
<meta property="og:description" content="Web de données | Architecture de l&#039;informations | Accès aux connaissances" />
34-
<meta property="og:url" content="https://www.sparna.fr/" />
34+
<meta property="og:url" content="{{ metadata.url }}{{ page.url }}" />
3535
<meta property="og:site_name" content="Sparna" />
3636
<meta property="og:image" content="{{ '/assets/images/logo.png' | relative(page) }}" />
3737
<meta property="og:locale" content="{{ page.lang }}" />
38-
<meta name="twitter:card" content="summary" />
3938

4039

4140
{% analytics %}

src/en/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: sparna.njk
3-
title: Sparna | knowledge graphs, ontologies, linked data
3+
title: Linked Data - Knowledge Graphs - Ontologies - AI | Sparna
44
bodyClass: home page page-id-46 page-template-default
55
savoir_faire:
66
p1: Sparna is an IT consultancy specializing in the organization of knowledge, document annotation and indexing, and the opening up and reuse of data.

src/fr/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: sparna.njk
3-
title: Sparna | graphes de connaissances, ontologies, linked data
3+
title: Linked Data - Graphes Sémantiques - Ontologies - IA | Sparna
44
bodyClass: home page page-id-46 page-template-default
55
savoir_faire:
66
p1: Sparna est une société de conseil informatique spécialisée sur les enjeux d'organisation des connaissances, d'annotation et d'indexation des documents, d'ouverture et de réutilisation des données.

static/.htaccess

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,11 @@ RewriteCond %{HTTP:Accept-Language} ^fr [NC]
1111
RewriteRule ^$ /fr/ [L,R=302]
1212

1313
# else redirect to the English version
14-
RewriteRule ^$ /en/ [L,R=302]
14+
RewriteRule ^$ /en/ [L,R=302]
15+
16+
# Transfer everything from http to https
17+
# And also everything without www to the same with www
18+
RewriteCond %{HTTPS} off [OR]
19+
RewriteCond %{HTTP_HOST} !^www\. [NC]
20+
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
21+
RewriteRule ^.*$ https://www.%1%{REQUEST_URI} [L,NE,R=301]

0 commit comments

Comments
 (0)