diff --git a/borgweb/templates/404.html b/borgweb/templates/404.html
index 05b8713..261bdc9 100644
--- a/borgweb/templates/404.html
+++ b/borgweb/templates/404.html
@@ -1,4 +1,4 @@
-{% extends "error.html" %}
+{% extends "error/error.html" %}
{% block title %}404: Page Not Found{% endblock %}
{% block error_message %}404: Page Not Found{% endblock %}
diff --git a/borgweb/templates/error.html b/borgweb/templates/error/error.html
similarity index 100%
rename from borgweb/templates/error.html
rename to borgweb/templates/error/error.html