From 5222b6d447d789eb4ba6b5b5c36ac40344494491 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Tue, 25 Jun 2013 06:16:07 -0400 Subject: [PATCH] Show not logged in message on failed login. Configure the server ErrorDocument to login.php and allow access to that file for any client. The message will then be shown with full stylesheet to clients who fail to authenticate. --- www/.htaccess | 1 + www/login.php | 1 + 2 files changed, 2 insertions(+) create mode 120000 www/login.php diff --git a/www/.htaccess b/www/.htaccess index cab738c..e56e28a 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -1,4 +1,5 @@ RewriteEngine on RewriteCond %{REQUEST_FILENAME} !/style\.css$ RewriteCond %{REQUEST_FILENAME} !/logo\.png$ +RewriteCond %{REQUEST_FILENAME} !/login\.php$ RewriteRule ^(.+) index.php [L] diff --git a/www/login.php b/www/login.php new file mode 120000 index 0000000..0012f7d --- /dev/null +++ b/www/login.php @@ -0,0 +1 @@ +index.php \ No newline at end of file -- 2.20.1