oMMuCo/Open-Government-Indonesia/master/.htaccess - Htaccess File

oMMuCo/Open-Government-Indonesia/master/.htaccess

RewriteEngine on

# Redirect from subdomian #
# Remove www for SEO #
RewriteCond %{HTTP_HOST} ^ogi.ommu.co$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.ogi.ommu.co$ [NC]
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ "https://ogi.ommu.co/$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