oMMuCo/Resistance-Web-ID/master/.htaccess - Htaccess File

oMMuCo/Resistance-Web-ID/master/.htaccess

RewriteEngine on

# Redirect from subdomian #
# Remove www for SEO #
RewriteCond %{HTTP_HOST} ^resistance.waikijogja.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.resistance.waikijogja.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^resistance.web.id$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.resistance.web.id$ [NC]
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ "https://resistance.web.id/$1" [R=301,L]

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule . index.php

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, HTTPS, REQUEST_FILENAME

Comments

Apache