SunDi3yansyah/SunQA/master/public/.htaccess
<ifmodule mod_headers.c>
Header unset Server
Header unset X-Powered-By
</ifmodule>
<IfModule mod_rewrite.c>
ServerSignature Off
RewriteEngine On
# RewriteBase /
Options +FollowSymLinks -Indexes
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
# Enable WWW
# RewriteCond %{HTTP_HOST} ^www.domain.com [nocase]
# RewriteRule ^(.*) https://domain.com/$1 [last,redirect=301]
# Disable WWW
# RewriteCond %{HTTP_HOST} ^www.domain.com [NC]
# RewriteRule (.*) https://domain.com/$1 [L,R=301]
RewriteCond %{REQUEST_URI} ^build.*
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{REQUEST_URI} ^app.*
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond $1 !^(index.php|assets|robots.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>
ErrorDocument 404 /index.php
ErrorDocument 403 /index.php
<IfModule mod_headers.c>
Header set X-XSS-Protection "1; mode=block"
</IfModule>
On Github License
Files