# BEGIN SUGARCRM RESTRICTIONS RedirectMatch 403 .*\.log$ RedirectMatch 403 /+not_imported_.*\.txt RedirectMatch 403 /+(soap|cache|xtemplate|data|examples|include|log4php|metadata|modules)/+.*\.(php|tpl) RedirectMatch 403 /+emailmandelivery\.php RedirectMatch 403 /+upload/ RedirectMatch 403 /+custom/+blowfish RedirectMatch 403 /+cache/+diagnostic RedirectMatch 403 /+files\.md5$ RedirectMatch 403 /+composer\.(json|lock) RedirectMatch 403 /+vendor/(?!ytree.*\.(css|js|gif|png)) RedirectMatch 403 /+bin/ RedirectMatch 403 /+src/ RedirectMatch 403 .*/\.git # Fix mimetype for logo.svg (SP-1395) AddType image/svg+xml .svg AddType application/json .json AddType application/javascript .js Options +FollowSymLinks RewriteEngine On RewriteBase /sugar RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^rest/(.*)$ api/rest.php?__sugar_url=$1 [L,QSA] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^cache/api/metadata/lang_(.._..)_(.*)_public(_ordered)?\.json$ rest/v10/lang/public/$1?platform=$2&ordered=$3 [N,QSA,DPI] RewriteRule ^cache/api/metadata/lang_(.._..)_([^_]*)(_ordered)?\.json$ rest/v10/lang/$1?platform=$2&ordered=$3 [N,QSA,DPI] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^cache/Expressions/functions_cache(_debug)?.js$ rest/v10/ExpressionEngine/functions?debug=$1 [N,QSA,DPI] RewriteRule ^cache/jsLanguage/(.._..).js$ index.php?entryPoint=jslang&module=app_strings&lang=$1 [L,QSA,DPI] RewriteRule ^cache/jsLanguage/(\w*)/(.._..).js$ index.php?entryPoint=jslang&module=$1&lang=$2 [L,QSA,DPI] RewriteRule ^portal/(.*)$ portal2/$1 [L,QSA] RewriteRule ^portal$ portal/? [R=301,L] AddType application/x-font-woff .woff Header set ETag "" Header set Cache-Control "max-age=2592000" Header set Expires "01 Jan 2112 00:00:00 GMT" ExpiresByType text/css "access plus 1 month" ExpiresByType text/javascript "access plus 1 month" ExpiresByType application/x-javascript "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType application/x-font-woff "access plus 1 month" ExpiresByType image/svg "access plus 1 month" # END SUGARCRM RESTRICTIONS