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.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !/style\.css$
RewriteCond %{REQUEST_FILENAME} !/logo\.png$
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !/style\.css$
RewriteCond %{REQUEST_FILENAME} !/logo\.png$
+RewriteCond %{REQUEST_FILENAME} !/login\.php$
RewriteRule ^(.+) index.php [L]
RewriteRule ^(.+) index.php [L]
--- /dev/null
+index.php
\ No newline at end of file