From b9c25218f177b22ba0590706692d47f54986cd0d Mon Sep 17 00:00:00 2001 From: Samuel FORESTIER Date: Sun, 28 Jul 2019 10:11:07 +0200 Subject: [PATCH] fix: favicon not being loaded when using Apaxy in a subdirectory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch moves `apaxy/favicon.ico` to `apaxy/theme/favicon.ico` not to pollute the indexed page root. The new favicon location is indicated through an HTML tag with the help of the `IndexHeadInsert` Apache directive, to automatically deal with processed pages. --- apaxy/htaccess.txt | 10 ++++++---- apaxy/{ => theme}/favicon.ico | Bin 2 files changed, 6 insertions(+), 4 deletions(-) rename apaxy/{ => theme}/favicon.ico (100%) diff --git a/apaxy/htaccess.txt b/apaxy/htaccess.txt index 646d118..2382399 100644 --- a/apaxy/htaccess.txt +++ b/apaxy/htaccess.txt @@ -19,11 +19,13 @@ Options +Indexes # index options IndexOptions +Charset=UTF-8 +FancyIndexing +FoldersFirst +HTMLTable +IconsAreLinks +IgnoreCase +NameWidth=* +SuppressDescription +SuppressRules +XHTML -# meta viewport -IndexHeadInsert "" +# favicon & meta viewport +IndexHeadInsert "\ + \ + " -# hide ".htaccess" file, "favicon.ico" file and "/theme" directory -IndexIgnore .htaccess favicon.ico /theme +# hide ".htaccess" file and "/theme" directory +IndexIgnore .htaccess /theme # diff --git a/apaxy/favicon.ico b/apaxy/theme/favicon.ico similarity index 100% rename from apaxy/favicon.ico rename to apaxy/theme/favicon.ico