Initial Commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#Cache Mensile
|
||||
<FilesMatch "\.(js|css|pdf|txt|png|jpg)$">
|
||||
Header set Cache-Control "max-age=7200"
|
||||
</FilesMatch>
|
||||
|
||||
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]
|
||||
Reference in New Issue
Block a user