diff --git a/admin/images/index.htm b/admin/images/index.htm
deleted file mode 100644
index 960cd928d..000000000
--- a/admin/images/index.htm
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- PhpWebGallery
-
-
- No access authorized
-
-
\ No newline at end of file
diff --git a/admin/images/index.php b/admin/images/index.php
new file mode 100644
index 000000000..71fa63d95
--- /dev/null
+++ b/admin/images/index.php
@@ -0,0 +1,35 @@
+
diff --git a/admin/include/index.htm b/admin/include/index.htm
deleted file mode 100644
index 960cd928d..000000000
--- a/admin/include/index.htm
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- PhpWebGallery
-
-
- No access authorized
-
-
\ No newline at end of file
diff --git a/admin/include/index.php b/admin/include/index.php
new file mode 100644
index 000000000..71fa63d95
--- /dev/null
+++ b/admin/include/index.php
@@ -0,0 +1,35 @@
+
diff --git a/admin/index.htm b/admin/index.htm
deleted file mode 100644
index 960cd928d..000000000
--- a/admin/index.htm
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- PhpWebGallery
-
-
- No access authorized
-
-
\ No newline at end of file
diff --git a/admin/index.php b/admin/index.php
new file mode 100644
index 000000000..71fa63d95
--- /dev/null
+++ b/admin/index.php
@@ -0,0 +1,35 @@
+
diff --git a/doc/index.php b/doc/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/doc/index.php
@@ -0,0 +1,35 @@
+
diff --git a/galleries/index.htm b/galleries/index.htm
deleted file mode 100644
index 960cd928d..000000000
--- a/galleries/index.htm
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- PhpWebGallery
-
-
- No access authorized
-
-
\ No newline at end of file
diff --git a/galleries/index.php b/galleries/index.php
new file mode 100644
index 000000000..71fa63d95
--- /dev/null
+++ b/galleries/index.php
@@ -0,0 +1,35 @@
+
diff --git a/include/index.php b/include/index.php
index 0f1d97083..71fa63d95 100644
--- a/include/index.php
+++ b/include/index.php
@@ -25,9 +25,11 @@
// | USA. |
// +-----------------------------------------------------------------------+
+// recursive call of index.php
+
$url = '../index.php';
-header( 'Request-URI: '.$url );
-header( 'Content-Location: '.$url );
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>
diff --git a/install/db/index.php b/install/db/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/install/db/index.php
@@ -0,0 +1,35 @@
+
diff --git a/install/index.php b/install/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/install/index.php
@@ -0,0 +1,35 @@
+
diff --git a/language/en_UK.iso-8859-1/help/index.php b/language/en_UK.iso-8859-1/help/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/language/en_UK.iso-8859-1/help/index.php
@@ -0,0 +1,35 @@
+
diff --git a/language/en_UK.iso-8859-1/index.php b/language/en_UK.iso-8859-1/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/language/en_UK.iso-8859-1/index.php
@@ -0,0 +1,35 @@
+
diff --git a/language/fr_FR.iso-8859-1/help/index.php b/language/fr_FR.iso-8859-1/help/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/language/fr_FR.iso-8859-1/help/index.php
@@ -0,0 +1,35 @@
+
diff --git a/language/fr_FR.iso-8859-1/index.php b/language/fr_FR.iso-8859-1/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/language/fr_FR.iso-8859-1/index.php
@@ -0,0 +1,35 @@
+
diff --git a/language/index.htm b/language/index.htm
deleted file mode 100644
index 960cd928d..000000000
--- a/language/index.htm
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- PhpWebGallery
-
-
- No access authorized
-
-
\ No newline at end of file
diff --git a/language/index.php b/language/index.php
new file mode 100644
index 000000000..71fa63d95
--- /dev/null
+++ b/language/index.php
@@ -0,0 +1,35 @@
+
diff --git a/template-common/index.php b/template-common/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/template-common/index.php
@@ -0,0 +1,35 @@
+
diff --git a/template-extension/index.php b/template-extension/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/template-extension/index.php
@@ -0,0 +1,35 @@
+
diff --git a/template-extension/yoga/index.php b/template-extension/yoga/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/template-extension/yoga/index.php
@@ -0,0 +1,35 @@
+
diff --git a/template-extension/yoga/local/index.php b/template-extension/yoga/local/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/template-extension/yoga/local/index.php
@@ -0,0 +1,35 @@
+
diff --git a/template/index.php b/template/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/template/index.php
@@ -0,0 +1,35 @@
+
diff --git a/template/yoga/admin/index.php b/template/yoga/admin/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/template/yoga/admin/index.php
@@ -0,0 +1,35 @@
+
diff --git a/template/yoga/icon/admin/index.php b/template/yoga/icon/admin/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/template/yoga/icon/admin/index.php
@@ -0,0 +1,35 @@
+
diff --git a/template/yoga/icon/index.php b/template/yoga/icon/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/template/yoga/icon/index.php
@@ -0,0 +1,35 @@
+
diff --git a/template/yoga/icon/mimetypes/index.php b/template/yoga/icon/mimetypes/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/template/yoga/icon/mimetypes/index.php
@@ -0,0 +1,35 @@
+
diff --git a/template/yoga/index.php b/template/yoga/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/template/yoga/index.php
@@ -0,0 +1,35 @@
+
diff --git a/template/yoga/theme/clear/index.php b/template/yoga/theme/clear/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/template/yoga/theme/clear/index.php
@@ -0,0 +1,35 @@
+
diff --git a/template/yoga/theme/dark/images/index.php b/template/yoga/theme/dark/images/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/template/yoga/theme/dark/images/index.php
@@ -0,0 +1,35 @@
+
diff --git a/template/yoga/theme/dark/index.php b/template/yoga/theme/dark/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/template/yoga/theme/dark/index.php
@@ -0,0 +1,35 @@
+
diff --git a/template/yoga/theme/index.php b/template/yoga/theme/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/template/yoga/theme/index.php
@@ -0,0 +1,35 @@
+
diff --git a/tools/index.php b/tools/index.php
new file mode 100644
index 000000000..ad16c4524
--- /dev/null
+++ b/tools/index.php
@@ -0,0 +1,35 @@
+