From b66d953dd1f757b43b93aafe115bf838e386811b Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Tue, 11 Apr 2017 21:21:58 +0200 Subject: All requests to "favicon.ico" will now be redirected to the current template directory "rsrc/favicon.ico" (if the "favicon.ico" inside the root directory does not exist). --- index.php | 5 +++++ template/standard/html/main.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 37dcce8..a96d423 100644 --- a/index.php +++ b/index.php @@ -82,6 +82,11 @@ Router::addRedirect('feed/(page|post)', Application::getURL('feed/$1/')); #=============================================================================== Router::addRedirect('search', Application::getURL('search/')); +#=============================================================================== +# REDIRECT: Favicon +#=============================================================================== +Router::addRedirect('favicon.ico', Application::getTemplateURL('rsrc/favicon.ico')); + #=============================================================================== # Execute router and route requests #=============================================================================== diff --git a/template/standard/html/main.php b/template/standard/html/main.php index c6cfa7d..ac9bf31 100644 --- a/template/standard/html/main.php +++ b/template/standard/html/main.php @@ -40,7 +40,7 @@ $BLOGMETA_DESC = escapeHTML($BLOGMETA['DESC']); - + -- cgit v1.2.3