diff --git a/README.rst b/README.rst
index 17a74c621e3f5c1b52a9fe4fdff56c928cb48c29..1ab91cb81d76ce6d4c9fb4e0aebe1789a18cdee7 100644
--- a/README.rst
+++ b/README.rst
@@ -18,23 +18,23 @@ symbolically kernel-independent FMM implementation here.
 
 Sumpy relies on
 
-* `numpy <http://pypi.python.org/pypi/numpy>`_ for arrays
-* `boxtree <http://pypi.python.org/pypi/boxtree>`_ for FMM tree building
-* `sumpy <http://pypi.python.org/pypi/sumpy>`_ for expansions and analytical routines
-* `loopy <http://pypi.python.org/pypi/loopy>`_ for fast array operations
-* `pytest <http://pypi.python.org/pypi/pytest>`_ for automated testing
+* `numpy <https://pypi.org/project/numpy>`_ for arrays
+* `boxtree <https://pypi.org/project/boxtree>`_ for FMM tree building
+* `sumpy <https://pypi.org/project/sumpy>`_ for expansions and analytical routines
+* `loopy <https://pypi.org/project/loopy>`_ for fast array operations
+* `pytest <https://pypi.org/project/pytest>`_ for automated testing
 
 and, indirectly,
 
-* `PyOpenCL <http://pypi.python.org/pypi/pyopencl>`_ as computational infrastructure
+* `PyOpenCL <https://pypi.org/project/pyopencl>`_ as computational infrastructure
 
 PyOpenCL is likely the only package you'll have to install
 by hand, all the others will be installed automatically.
 
 Resources:
 
-* `documentation <http://documen.tician.de/sumpy>`_
-* `source code via git <http://github.com/inducer/sumpy>`_
+* `documentation <https://documen.tician.de/sumpy>`_
+* `source code via git <https://github.com/inducer/sumpy>`_
 
 If you can see inside the UIUC firewall, you may browse
-`benchmark results <http://koelsch.d.tiker.net/benchmarks/asv/sumpy/>`_.
+`benchmark results <https://koelsch.d.tiker.net/benchmarks/asv/sumpy/>`_.
diff --git a/asv.conf.json b/asv.conf.json
index 90133beb7af7d1a4b5bb23745b9cc543b1191d7b..4c34933d134fb2279ff05e11498e3f16a34beed6 100644
--- a/asv.conf.json
+++ b/asv.conf.json
@@ -41,7 +41,7 @@
     //"install_timeout": 600,
 
     // the base URL to show a commit for the project.
-    "show_commit_url": "http://gitlab.tiker.net/inducer/sumpy/commits/",
+    "show_commit_url": "https://gitlab.tiker.net/inducer/sumpy/commits/",
 
     // The Pythons you'd like to test against.  If not provided, defaults
     // to the current version of Python used to run `asv`.
diff --git a/doc/Makefile b/doc/Makefile
index cd9f910938e3358daaf585921710b3b3c4081df8..0c13016b1d913a04f4481874746da2474bd722d3 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -9,7 +9,7 @@ BUILDDIR      = _build
 
 # User-friendly check for sphinx-build
 ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
-	$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don\'t have Sphinx installed, grab it from http://sphinx-doc.org/)
+	$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don\'t have Sphinx installed, grab it from https://sphinx-doc.org/)
 endif
 
 # Internal variables.
diff --git a/doc/conf.py b/doc/conf.py
index 55d9766a664f6d04d52b0af1faac279c48673815..2d444724b73b2eb64a8f2f38df13a1544c621ebc 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -119,7 +119,7 @@ html_theme = "alabaster"
 html_theme_options = {
         "extra_nav_links": {
             "🚀 Github": "https://github.com/inducer/sumpy",
-            "💾 Download Releases": "https://pypi.python.org/pypi/sumpy",
+            "💾 Download Releases": "https://pypi.org/project/sumpy",
             }
         }
 
diff --git a/doc/misc.rst b/doc/misc.rst
index b728f098a49fced6ae19310234526d6b84823d29..056816aac165caaa4d9f087ac7bc2a5a63856807 100644
--- a/doc/misc.rst
+++ b/doc/misc.rst
@@ -12,7 +12,7 @@ This command should install :mod:`sumpy`::
     pip install sumpy
 
 You may need to run this with :command:`sudo`.
-If you don't already have `pip <https://pypi.python.org/pypi/pip>`_,
+If you don't already have `pip <https://pypi.org/project/pip>`_,
 run this beforehand::
 
     curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
@@ -101,7 +101,7 @@ Frequently Asked Questions
 ==========================
 
 The FAQ is maintained collaboratively on the
-`Wiki FAQ page <http://wiki.tiker.net/Sumpy/FrequentlyAskedQuestions>`_.
+`Wiki FAQ page <https://wiki.tiker.net/Sumpy/FrequentlyAskedQuestions>`_.
 
 Acknowledgments
 ===============
diff --git a/examples/curve-pot.py b/examples/curve-pot.py
index 65e273d8e31504a1eb116234f00845e071694d71..7ce25a823030fdab892b3be9419126d7bab2a276 100644
--- a/examples/curve-pot.py
+++ b/examples/curve-pot.py
@@ -91,7 +91,7 @@ def draw_pot_figure(aspect_ratio,
 
     # r,a,b match the corresponding letters from G. J. Rodin and O. Steinbach,
     # Boundary Element Preconditioners for problems defined on slender domains.
-    # http://dx.doi.org/10.1137/S1064827500372067
+    # https://dx.doi.org/10.1137/S1064827500372067
 
     a = 1
     b = 1/aspect_ratio
diff --git a/examples/fourier.py b/examples/fourier.py
index 24fd6aa747c92b0f7b1f8cb10af36d9cbf70f4bf..a4a04b9fc861f2536950c2b6ebf6abcd43f85331 100644
--- a/examples/fourier.py
+++ b/examples/fourier.py
@@ -15,7 +15,7 @@ def make_fourier_mode_extender(m, n, dtype):
     k = min(m, n)
     result = np.zeros((m, n), dtype)
 
-    # http://docs.scipy.org/doc/numpy/reference/routines.fft.html
+    # https://docs.scipy.org/doc/numpy/reference/routines.fft.html
     if k % 2 == 0:
         peak_pos_freq = k/2
     else:
diff --git a/notes/expansion-notes.tex b/notes/expansion-notes.tex
index ebbe38a3953470a7ea91dc3d2dfd973a435eb54c..45a1242942d2d4561c48f24944f93def3d4e4fe4 100644
--- a/notes/expansion-notes.tex
+++ b/notes/expansion-notes.tex
@@ -26,7 +26,7 @@
 J_k(v) e^{i k \alpha} \]
 %
 where $C_\nu$ can be a Hankel or Bessel function of index $\nu$. This holds when
-$|u| > |v|$. \footnote{See for instance \url{http://dlmf.nist.gov/10.23\#ii}}
+$|u| > |v|$. \footnote{See for instance \url{https://dlmf.nist.gov/10.23\#ii}}
 
 \section*{Expansions}
 
diff --git a/notes/latexmkrc b/notes/latexmkrc
index c1d531320705267e15ce3f7105d17ad2b7dc2325..7dae9e6e16eab110f93a573fc3fae386125654f8 100644
--- a/notes/latexmkrc
+++ b/notes/latexmkrc
@@ -1,4 +1,4 @@
-# http://tex.stackexchange.com/questions/11710/specify-output-directory-when-using-latexmk
+# https://tex.stackexchange.com/questions/11710/specify-output-directory-when-using-latexmk
 $pdflatex="pdflatex -interaction nonstopmode %O %S";
 $out_dir = 'out';
 $pdf_mode = 1;
diff --git a/notes/media/graf.eps b/notes/media/graf.eps
index 489cebb40cd8b3eb4831762122d5feb3412a512a..fbc87928ee4f096abd8d0eeb2ce126e3ea072cd2 100644
--- a/notes/media/graf.eps
+++ b/notes/media/graf.eps
@@ -85,10 +85,10 @@ ipe begin
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMMI10.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMMI10.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMMI10 known{/CMMI10 findfont dup/UniqueID known{dup
 /UniqueID get 5087385 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -101,7 +101,7 @@ FontDirectory/CMMI10 known{/CMMI10 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 10 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMMI10.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMMI10.) readonly def
 /FullName (CMMI10) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
diff --git a/notes/media/l-expn.eps b/notes/media/l-expn.eps
index eb177bd26688cc8146d919c8f654942bcb78e0a5..a8f911ae1d6e4774918615f4d7e32e4fe71f8fac 100644
--- a/notes/media/l-expn.eps
+++ b/notes/media/l-expn.eps
@@ -86,10 +86,10 @@ ipe begin
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMMI7.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMMI7.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMMI7 known{/CMMI7 findfont dup/UniqueID known{dup
 /UniqueID get 5087382 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -102,7 +102,7 @@ FontDirectory/CMMI7 known{/CMMI7 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 10 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMMI7.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMMI7.) readonly def
 /FullName (CMMI7) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
@@ -337,10 +337,10 @@ cleartomark
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMMI10.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMMI10.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMMI10 known{/CMMI10 findfont dup/UniqueID known{dup
 /UniqueID get 5087385 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -353,7 +353,7 @@ FontDirectory/CMMI10 known{/CMMI10 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 10 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMMI10.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMMI10.) readonly def
 /FullName (CMMI10) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
diff --git a/notes/media/m-expn.eps b/notes/media/m-expn.eps
index 14076781fc494713f2345a902de88dc7267df57f..2e6b65d34b7cdc7e91076b35cbdec5bed5577743 100644
--- a/notes/media/m-expn.eps
+++ b/notes/media/m-expn.eps
@@ -86,10 +86,10 @@ ipe begin
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMMI7.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMMI7.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMMI7 known{/CMMI7 findfont dup/UniqueID known{dup
 /UniqueID get 5087382 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -102,7 +102,7 @@ FontDirectory/CMMI7 known{/CMMI7 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 10 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMMI7.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMMI7.) readonly def
 /FullName (CMMI7) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
@@ -337,10 +337,10 @@ cleartomark
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMMI10.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMMI10.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMMI10 known{/CMMI10 findfont dup/UniqueID known{dup
 /UniqueID get 5087385 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -353,7 +353,7 @@ FontDirectory/CMMI10 known{/CMMI10 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 10 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMMI10.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMMI10.) readonly def
 /FullName (CMMI10) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
diff --git a/notes/media/m2l-translation.eps b/notes/media/m2l-translation.eps
index e1d39a244e62f4091aa30751510d2d58274d8496..08e42531c54c0e5ba864243381a9ef1f8db860f2 100644
--- a/notes/media/m2l-translation.eps
+++ b/notes/media/m2l-translation.eps
@@ -89,10 +89,10 @@ ipe begin
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMR5.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMR5.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMR5 known{/CMR5 findfont dup/UniqueID known{dup
 /UniqueID get 5000788 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -105,7 +105,7 @@ FontDirectory/CMR5 known{/CMR5 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 9 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMR5.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMR5.) readonly def
 /FullName (CMR5) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
@@ -331,10 +331,10 @@ cleartomark
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMR7.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMR7.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMR7 known{/CMR7 findfont dup/UniqueID known{dup
 /UniqueID get 5000790 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -347,7 +347,7 @@ FontDirectory/CMR7 known{/CMR7 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 9 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMR7.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMR7.) readonly def
 /FullName (CMR7) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
@@ -573,10 +573,10 @@ cleartomark
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMMI7.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMMI7.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMMI7 known{/CMMI7 findfont dup/UniqueID known{dup
 /UniqueID get 5087382 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -589,7 +589,7 @@ FontDirectory/CMMI7 known{/CMMI7 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 10 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMMI7.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMMI7.) readonly def
 /FullName (CMMI7) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
@@ -818,10 +818,10 @@ cleartomark
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMMI10.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMMI10.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMMI10 known{/CMMI10 findfont dup/UniqueID known{dup
 /UniqueID get 5087385 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -834,7 +834,7 @@ FontDirectory/CMMI10 known{/CMMI10 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 10 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMMI10.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMMI10.) readonly def
 /FullName (CMMI10) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
@@ -1068,10 +1068,10 @@ cleartomark
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMSY10.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMSY10.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMSY10 known{/CMSY10 findfont dup/UniqueID known{dup
 /UniqueID get 5096651 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -1084,7 +1084,7 @@ FontDirectory/CMSY10 known{/CMSY10 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 9 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMSY10.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMSY10.) readonly def
 /FullName (CMSY10) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
diff --git a/notes/media/m2m-l2l-translation.eps b/notes/media/m2m-l2l-translation.eps
index 44c64b04f444af7d7480a222fcaf2ee15bbfa1a3..cd376a8f61c899991541c33351c9af5483cd1d46 100644
--- a/notes/media/m2m-l2l-translation.eps
+++ b/notes/media/m2m-l2l-translation.eps
@@ -89,10 +89,10 @@ ipe begin
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMR5.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMR5.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMR5 known{/CMR5 findfont dup/UniqueID known{dup
 /UniqueID get 5000788 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -105,7 +105,7 @@ FontDirectory/CMR5 known{/CMR5 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 9 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMR5.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMR5.) readonly def
 /FullName (CMR5) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
@@ -331,10 +331,10 @@ cleartomark
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMR7.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMR7.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMR7 known{/CMR7 findfont dup/UniqueID known{dup
 /UniqueID get 5000790 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -347,7 +347,7 @@ FontDirectory/CMR7 known{/CMR7 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 9 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMR7.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMR7.) readonly def
 /FullName (CMR7) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
@@ -573,10 +573,10 @@ cleartomark
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMMI7.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMMI7.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMMI7 known{/CMMI7 findfont dup/UniqueID known{dup
 /UniqueID get 5087382 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -589,7 +589,7 @@ FontDirectory/CMMI7 known{/CMMI7 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 10 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMMI7.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMMI7.) readonly def
 /FullName (CMMI7) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
@@ -818,10 +818,10 @@ cleartomark
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMMI10.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMMI10.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMMI10 known{/CMMI10 findfont dup/UniqueID known{dup
 /UniqueID get 5087385 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -834,7 +834,7 @@ FontDirectory/CMMI10 known{/CMMI10 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 10 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMMI10.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMMI10.) readonly def
 /FullName (CMMI10) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
@@ -1068,10 +1068,10 @@ cleartomark
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMSY10.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMSY10.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMSY10 known{/CMSY10 findfont dup/UniqueID known{dup
 /UniqueID get 5096651 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -1084,7 +1084,7 @@ FontDirectory/CMSY10 known{/CMSY10 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 9 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMSY10.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMSY10.) readonly def
 /FullName (CMSY10) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
diff --git a/notes/media/m2m-translation.eps b/notes/media/m2m-translation.eps
index 4ad495998279488b9e6d507d51b21df413955a86..62b0962a04634fc6f3d319cdc797335c85285453 100644
--- a/notes/media/m2m-translation.eps
+++ b/notes/media/m2m-translation.eps
@@ -89,10 +89,10 @@ ipe begin
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMR5.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMR5.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMR5 known{/CMR5 findfont dup/UniqueID known{dup
 /UniqueID get 5000788 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -105,7 +105,7 @@ FontDirectory/CMR5 known{/CMR5 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 9 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMR5.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMR5.) readonly def
 /FullName (CMR5) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
@@ -331,10 +331,10 @@ cleartomark
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMR7.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMR7.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMR7 known{/CMR7 findfont dup/UniqueID known{dup
 /UniqueID get 5000790 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -347,7 +347,7 @@ FontDirectory/CMR7 known{/CMR7 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 9 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMR7.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMR7.) readonly def
 /FullName (CMR7) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
@@ -573,10 +573,10 @@ cleartomark
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMMI7.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMMI7.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMMI7 known{/CMMI7 findfont dup/UniqueID known{dup
 /UniqueID get 5087382 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -589,7 +589,7 @@ FontDirectory/CMMI7 known{/CMMI7 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 10 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMMI7.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMMI7.) readonly def
 /FullName (CMMI7) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
@@ -818,10 +818,10 @@ cleartomark
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMMI10.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMMI10.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMMI10 known{/CMMI10 findfont dup/UniqueID known{dup
 /UniqueID get 5087385 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -834,7 +834,7 @@ FontDirectory/CMMI10 known{/CMMI10 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 10 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMMI10.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMMI10.) readonly def
 /FullName (CMMI10) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
@@ -1068,10 +1068,10 @@ cleartomark
 %%CreationDate: Mon Jul 13 16:17:00 2009
 %%Creator: David M. Jones
 %Copyright: Copyright (c) 1997, 2009 American Mathematical Society
-%Copyright: (<http://www.ams.org>), with Reserved Font Name CMSY10.
+%Copyright: (<https://www.ams.org>), with Reserved Font Name CMSY10.
 % This Font Software is licensed under the SIL Open Font License, Version 1.1.
 % This license is in the accompanying file OFL.txt, and is also
-% available with a FAQ at: http://scripts.sil.org/OFL.
+% available with a FAQ at: https://scripts.sil.org/OFL.
 %%EndComments
 FontDirectory/CMSY10 known{/CMSY10 findfont dup/UniqueID known{dup
 /UniqueID get 5096651 eq exch/FontType get 1 eq and}{pop false}ifelse
@@ -1084,7 +1084,7 @@ FontDirectory/CMSY10 known{/CMSY10 findfont dup/UniqueID known{dup
 /PaintType 0 def
 /FontInfo 9 dict dup begin
 /version (003.002) readonly def
-/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<http://www.ams.org>\051, with Reserved Font Name CMSY10.) readonly def
+/Notice (Copyright \050c\051 1997, 2009 American Mathematical Society \050<https://www.ams.org>\051, with Reserved Font Name CMSY10.) readonly def
 /FullName (CMSY10) readonly def
 /FamilyName (Computer Modern) readonly def
 /Weight (Medium) readonly def
diff --git a/sumpy/codegen.py b/sumpy/codegen.py
index b5d08088653509a8afc37b80da3959b4c14257b5..724528b9cea1a806ced3db901161735333b323c3 100644
--- a/sumpy/codegen.py
+++ b/sumpy/codegen.py
@@ -427,7 +427,7 @@ class BesselDerivativeReplacer(CSECachingMapperMixin, IdentityMapper):
             import sympy as sym
 
             # AS (9.1.31)
-            # http://dlmf.nist.gov/10.6.7
+            # https://dlmf.nist.gov/10.6.7
             if order >= 0:
                 order_str = str(order)
             else:
diff --git a/sumpy/kernel.py b/sumpy/kernel.py
index 9beaff6c5b2a520fbc5a2ceceb32f10a5a7ab713..16e740a13c54868c4bdb8fa841c87ed7c64a3138 100644
--- a/sumpy/kernel.py
+++ b/sumpy/kernel.py
@@ -561,7 +561,7 @@ class YukawaKernel(ExpressionKernel):
         # where K is a modified Bessel function of the second kind.
         #
         # [1] https://en.wikipedia.org/wiki/Green%27s_function
-        # [2] http://dlmf.nist.gov/10.27#E8
+        # [2] https://dlmf.nist.gov/10.27#E8
         # [3] https://dlmf.nist.gov/10.47#E2
         # [4] https://dlmf.nist.gov/10.49
 
diff --git a/sumpy/tools.py b/sumpy/tools.py
index 2e5366b645e575c36266ec4e33cc1b8af8e4def8..98f93cae103643666492e84f70324160e18046d8 100644
--- a/sumpy/tools.py
+++ b/sumpy/tools.py
@@ -519,7 +519,7 @@ class MatrixBlockIndexRanges:
 
 # {{{ OrderedSet
 
-# Source: http://code.activestate.com/recipes/576694-orderedset/
+# Source: https://code.activestate.com/recipes/576694-orderedset/
 # Author: Raymond Hettinger
 # License: MIT