AddType x-httpd-php71 .php

Options +FollowSymlinks
Options -Indexes
RewriteEngine On

#Live
#Cloud host HTTP TO HTTPS (wont work on non cloud servers)
#RewriteCond %{HTTP:X-Forwarded-Proto} !https
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

#Dev
#RewriteCond %{HTTPS} off
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#use 302 to help with caching

#RewriteCond %{HTTPS} off
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=302]

#RewriteCond %{HTTPS} off
#RewriteRule ^login https://127.0.0.1/Dev/aftc/AFTC_2016/www/login [L,R=301]

#RewriteCond %{HTTPS} off
#RewriteRule ^register https://127.0.0.1/Dev/aftc/AFTC_2016/www/register [L,R=301]

#RewriteCond %{HTTPS} off
#RewriteRule ^dashboard https://127.0.0.1/Dev/aftc/AFTC_2016/www/dashboard [L,R=301]

RewriteRule \.(jpg|png|gif|jpeg|bmp|css|js)$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?aftc=$1 [L,QSA]