#Cache Mensile Header set Cache-Control "max-age=7200" SetEnv APPLICATION_ENV production RewriteEngine On # RewriteCond %{SERVER_PORT} 80 # RewriteRule ^(.*)$ https://apidev.fatturab2b.net/$1 [R,L] RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] # force https:// for all except some selected URLs RewriteCond %{HTTPS} off #RewriteCond %{THE_REQUEST} !/v1/ [NC] RewriteCond %{THE_REQUEST} !/services/ [NC] RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteRule ^(application|library|languages|log|vendor|rsa)(/.*)?$ - [F] RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L]