RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)



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

RewriteCond $1 !^(admin\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ admin.php/$1 [L,QSA]



#Force www:

RewriteCond %{HTTP_HOST} ^beamon.com/testing/Boss/ [NC]
RewriteRule ^(.*)$ http://www.beamon.com/testing/Boss/$1 [L,R=301,NC]

# Enforce SSL https://www. 
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]