DirectoryIndex login.php

RewriteEngine On
RewriteBase /accounting/

# If the file or directory exists, request it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Otherwise, send the request to login.php
RewriteRule ^(.*)$ login.php [QSA,L]