I am testing this apache settings in the /client/.htaccess as part of an effort to keep all client modifications in the /custom folder eventually.
It may be useful to somebody. I don't know how much performance Espo saves by avoiding a php router for client assets... it may be worthwhile to explore too
Code:
RewriteEngine Off RewriteEngine On RewriteBase /crm/client RewriteRule ^(.*)$ - [E=ORQP_CLIENT:$1] RewriteCond %{ENV:ORQP_CLIENT} !override RewriteCond %{DOCUMENT_ROOT}/crm/client/override/%{ENV:ORQP_CLIENT} -f RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/crm/client/override/%{ENV:ORQP_CLIENT} [L]