ZrLabs/NSSI/master/.htaccess
<IfModule mod_rewrite.c>
Options +FollowSymLinks -Indexes
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [QSA,L]
# for subdomains
# RewriteCond %{HTTPS} !=on
# RewriteCond %{HTTP_HOST} !^(www.)?domain.com$ [NC]
# RewriteCond %{HTTP_HOST} ^(?:www.|)(.*)$ [NC]
# RewriteRule ^.*$ https://%1%{REQUEST_URI} [R,L]
# for main domains
# RewriteCond %{HTTPS} !=on [OR]
# RewriteCond %{HTTP_HOST} ^domain.com$ [NC]
# RewriteRule ^.*$ https://www.domain.com%{REQUEST_URI} [R,L]
</IfModule>
On Github License
Files