26 lines
857 B
ApacheConf
26 lines
857 B
ApacheConf
RewriteEngine on
|
|
<IfModule LiteSpeed>
|
|
CacheDisable public /
|
|
CacheDisable private /
|
|
</IfModule>
|
|
|
|
# php -- BEGIN cPanel-generated handler, do not edit
|
|
# Set the “ea-php72” package as the default “PHP” programming language.
|
|
<IfModule mime_module>
|
|
AddHandler application/x-httpd-ea-php72___lsphp .php .php7 .phtml
|
|
</IfModule>
|
|
# php -- END cPanel-generated handler, do not edit
|
|
RewriteCond %{HTTPS} off
|
|
RewriteCond %{HTTP:X-Forwarded-SSL} !on
|
|
RewriteCond %{HTTP_HOST} ^rec\.nurinda\.co\.id$ [OR]
|
|
RewriteCond %{HTTP_HOST} ^www\.rec\.nurinda\.co\.id$
|
|
RewriteRule ^/?$ "https\:\/\/rec\.nurinda\.co\.id\/" [R=301,L]
|
|
|
|
# Database backups must never be served over HTTP.
|
|
<FilesMatch "(?i)\.(sql|sql\.gz|sql\.zip)$">
|
|
Require all denied
|
|
</FilesMatch>
|
|
|
|
# Local preview tooling is not part of the public application.
|
|
RewriteRule ^(?:dev|\.local)(?:/|$) - [F,L]
|