Announcement

Collapse
No announcement yet.

overriding client-side files like for php files in custom

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • overriding client-side files like for php files in custom

    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.

    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]
    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
Working...
X