diff --git a/action/acceder_document.php b/action/acceder_document.php
index d1d09593e2bd35ccf044ed8b21aaa69aeadf24a8..5e10ea0257ef8d9afff4c7d9b6d058c030f05b26 100644
--- a/action/acceder_document.php
+++ b/action/acceder_document.php
@@ -21,7 +21,7 @@ include_spip('inc/headers');
 // soit que le document est publie, c'est-a-dire
 // joint a au moins 1 article ou rubrique publie
 
-// http://code.spip.net/@action_acceder_document_dist
+// https://code.spip.net/@action_acceder_document_dist
 function action_acceder_document_dist() {
 	include_spip('inc/documents');
 
diff --git a/action/changer_mode_document.php b/action/changer_mode_document.php
index 66eab81baf7035a14d393a8aa21bccdf83d344d7..ac8d61d8cb8897f28d461bde0144079bed851ebe 100644
--- a/action/changer_mode_document.php
+++ b/action/changer_mode_document.php
@@ -18,7 +18,7 @@ if (!defined('_ECRIRE_INC_VERSION')) {
 /**
  * Cette action permet de basculer du mode image au mode document et vice versa
  *
- * http://code.spip.net/@action_changer_mode_document_dist
+ * https://code.spip.net/@action_changer_mode_document_dist
  *
  * @param int $id_document
  * @param string $mode
@@ -45,7 +45,7 @@ function action_changer_mode_document_dist($id_document = null, $mode = null) {
 	}
 }
 
-// http://code.spip.net/@action_changer_mode_document_post
+// https://code.spip.net/@action_changer_mode_document_post
 function action_changer_mode_document_post($id_document, $mode) {
 	// - id_document le doc a modifier
 	// - mode le mode a lui donner
diff --git a/action/copier_local.php b/action/copier_local.php
index 7d22776ae8ea531a59172745fac8825dc9cc6eb6..0ab0d118a0cb0392162c365a1900b2a585d97a9f 100644
--- a/action/copier_local.php
+++ b/action/copier_local.php
@@ -20,7 +20,7 @@ if (!defined('_ECRIRE_INC_VERSION')) {
  * Il s'agit de la partie logique, c'est a dire que cette fonction
  * realise la copie.
  *
- * http://code.spip.net/@action_copier_local_dist
+ * https://code.spip.net/@action_copier_local_dist
  *
  * @param null $id_document
  * @return bool|mixed|string
@@ -46,7 +46,7 @@ function action_copier_local_dist($id_document = null) {
 }
 
 /**
- * http://code.spip.net/@action_copier_local_post
+ * https://code.spip.net/@action_copier_local_post
  *
  * @param  $id_document
  * @return bool|mixed|string
diff --git a/action/supprimer_document.php b/action/supprimer_document.php
index 9c582d953d70a5e3f20c241ce4e0f7f6ee398697..ff905e6aad501eeacd3331d54a7ffff913ec7395 100644
--- a/action/supprimer_document.php
+++ b/action/supprimer_document.php
@@ -14,7 +14,7 @@ if (!defined('_ECRIRE_INC_VERSION')) {
 	return;
 }
 
-// http://code.spip.net/@supprimer_document
+// https://code.spip.net/@supprimer_document
 function action_supprimer_document_dist($id_document = 0) {
 	if (!$id_document) {
 		$securiser_action = charger_fonction('securiser_action', 'inc');
diff --git a/action/tourner.php b/action/tourner.php
index 94a26512e16c661cd6572f8cb9a441914862228e..8c22a8d7544902e5469ef17c370a28838eb95212 100644
--- a/action/tourner.php
+++ b/action/tourner.php
@@ -17,7 +17,7 @@ if (!defined('_ECRIRE_INC_VERSION')) {
 /**
  * Tourner un document
  *
- * http://code.spip.net/@action_tourner_dist
+ * https://code.spip.net/@action_tourner_dist
  *
  * lorsque les arguments sont passes dans arg en GET :
  * id_document-angle
@@ -47,7 +47,7 @@ function action_tourner_dist($id_document = null, $angle = null) {
 /**
  * Tourner un document
  *
- * http://code.spip.net/@action_tourner_post
+ * https://code.spip.net/@action_tourner_post
  *
  * @param int $id_document
  * @param int $angle
@@ -134,7 +134,7 @@ function action_tourner_post($id_document, $angle) {
 
 // Appliquer l'EXIF orientation
 // cf. http://trac.rezo.net/trac/spip/ticket/1494
-// http://code.spip.net/@tourner_selon_exif_orientation
+// https://code.spip.net/@tourner_selon_exif_orientation
 function tourner_selon_exif_orientation($id_document, $fichier) {
 
 	if (function_exists('exif_read_data')
diff --git a/formulaires/editer_document.php b/formulaires/editer_document.php
index 925ac08da5db34178a28de136b27afc10e13cadc..7f92a703b39dfa9e88e58294b614e89d3ade578a 100644
--- a/formulaires/editer_document.php
+++ b/formulaires/editer_document.php
@@ -146,7 +146,7 @@ function formulaires_editer_document_verifier_dist(
 	return $erreurs;
 }
 
-// http://code.spip.net/@inc_editer_article_dist
+// https://code.spip.net/@inc_editer_article_dist
 function formulaires_editer_document_traiter_dist(
 	$id_document = 'new',
 	$id_parent = '',
diff --git a/inc/documents.php b/inc/documents.php
index 8fc783d007a9464f6e8462bcffeb812975a17eaf..6259c3e56be17658fbbf85a2d54665cb5a196e45 100644
--- a/inc/documents.php
+++ b/inc/documents.php
@@ -28,7 +28,7 @@ if (!defined('CHARSET_JOINT')) {
 // Filtre pour #FICHIER permettant d'incruster le contenu d'un document
 // Si 2e arg fourni, conversion dans le charset du site si possible
 
-// http://code.spip.net/@contenu_document
+// https://code.spip.net/@contenu_document
 function contenu_document($arg, $charset = '') {
 	include_spip('inc/distant');
 	if (is_numeric($arg)) {
@@ -61,7 +61,7 @@ function contenu_document($arg, $charset = '') {
 	return $r;
 }
 
-// http://code.spip.net/@generer_url_document_dist
+// https://code.spip.net/@generer_url_document_dist
 function generer_url_document_dist($id_document, $args = '', $ancre = '') {
 
 	include_spip('inc/autoriser');
@@ -112,7 +112,7 @@ function generer_url_document_dist($id_document, $args = '', $ancre = '') {
 //
 // A noter : dans le portfolio prive on pousse le vice jusqu'a reduire la taille
 // de la vignette -> c'est a ca que sert la variable $portfolio
-// http://code.spip.net/@vignette_automatique
+// https://code.spip.net/@vignette_automatique
 function vignette_automatique($img, $doc, $lien, $x = 0, $y = 0, $align = '', $class = 'spip_logo spip_logos') {
 	include_spip('inc/distant');
 	include_spip('inc/texte');
diff --git a/inc/joindre_document.php b/inc/joindre_document.php
index ceb206c4959c26ac32aba063aaaca0ae5848186c..63324e786c4b9a4acb7e2f839f6e8a7f3679647a 100644
--- a/inc/joindre_document.php
+++ b/inc/joindre_document.php
@@ -300,7 +300,7 @@ function joindre_decrire_contenu_zip($zip) {
 }
 
 
-// http://code.spip.net/@joindre_deballes
+// https://code.spip.net/@joindre_deballes
 function joindre_deballer_lister_zip($path, $tmp_dir) {
 	include_spip('inc/pclzip');
 	$archive = new PclZip($path);
@@ -338,7 +338,7 @@ if (!function_exists('fixer_extension_document')) {
 	 * @param unknown_type $doc
 	 * @return unknown
 	 */
-// http://code.spip.net/@fixer_extension_document
+// https://code.spip.net/@fixer_extension_document
 	function fixer_extension_document($doc) {
 		$extension = '';
 		$name = $doc['name'];
@@ -365,7 +365,7 @@ if (!function_exists('fixer_extension_document')) {
 //
 // Gestion des fichiers ZIP
 //
-// http://code.spip.net/@accepte_fichier_upload
+// https://code.spip.net/@accepte_fichier_upload
 
 function accepte_fichier_upload($f) {
 	if (!preg_match(',.*__MACOSX/,', $f)
@@ -383,7 +383,7 @@ function accepte_fichier_upload($f) {
 
 # callback pour le deballage d'un zip telecharge
 # http://www.phpconcept.net/pclzip/man/en/?options-pclzip_cb_pre_extractfunction
-// http://code.spip.net/@callback_deballe_fichier
+// https://code.spip.net/@callback_deballe_fichier
 
 function callback_deballe_fichier($p_event, &$p_header) {
 	if (accepte_fichier_upload($p_header['filename'])) {
diff --git a/metadata/image.php b/metadata/image.php
index 01d03a743ab78629c94731b9d17adf9fc6c5c513..992e02e2d2f3346cb23ad8145f01b937a455a99f 100644
--- a/metadata/image.php
+++ b/metadata/image.php
@@ -33,7 +33,7 @@ function metadata_image_dist($fichier) {
  * @param bool $strict
  * @return string
  */
-// http://code.spip.net/@decoder_type_image
+// https://code.spip.net/@decoder_type_image
 function decoder_type_image($type, $strict = false) {
 	switch ($type) {
 		case 1:
diff --git a/urls/generer_url_document.php b/urls/generer_url_document.php
index 66270ec27373436de1b414a2dc5d3eb1fa415d60..c79a32b7952c56c29701add4d22ccf3b1431b7e3 100644
--- a/urls/generer_url_document.php
+++ b/urls/generer_url_document.php
@@ -26,7 +26,7 @@ if (!defined('_ECRIRE_INC_VERSION')) {
  * @param string $connect
  * @return string
  *
- * http://code.spip.net/@generer_url_ecrire_document
+ * https://code.spip.net/@generer_url_ecrire_document
  */
 function urls_generer_url_document_dist($id, $args = '', $ancre = '', $public = null, $connect = '') {
 	include_spip('inc/documents');
diff --git a/urls/generer_url_ecrire_document.php b/urls/generer_url_ecrire_document.php
index 0229146c8cef09889b04ecc5b7a85eeeb1af00ae..32f08074b105e02c1573aec9405815b9c78b072a 100644
--- a/urls/generer_url_ecrire_document.php
+++ b/urls/generer_url_ecrire_document.php
@@ -26,7 +26,7 @@ if (!defined('_ECRIRE_INC_VERSION')) {
  * @param string $connect
  * @return string
  *
- * http://code.spip.net/@generer_url_ecrire_document
+ * https://code.spip.net/@generer_url_ecrire_document
  */
 function urls_generer_url_ecrire_document_dist($id, $args = '', $ancre = '', $public = null, $connect = '') {
 	include_spip('inc/documents');