From: Iain Patterson Date: Tue, 25 Jun 2013 10:16:07 +0000 (-0400) Subject: Show not logged in message on failed login. X-Git-Tag: 2013-06-25~2 X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=5222b6d447d789eb4ba6b5b5c36ac40344494491;p=readifood.git 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. --- 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