getherbie/website/master/web/.htaccess - Htaccess File

getherbie/website/master/web/.htaccess

RewriteEngine on

# Redirect requests without www
RewriteCond %{HTTP_HOST} ^getherbie.org$ [NC]
RewriteRule ^(.*)$ http://www.getherbie.org/$1 [R=301,L]

# Redirect requests without https
# RewriteCond %{HTTPS} =off
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L,R=301]

# 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, REQUEST_URI

Comments

Apache