<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

    RewriteCond %{THE_REQUEST} ^[A-Z]+ /.*\ HTTP
    RewriteCond %{QUERY_STRING} !^$
R   ewriteRule .* https://sjp-test.hosting.cornell.edu%{REQUEST_URI}? [R=301,L]

    RewriteCond %{HTTPS} on
    RewriteCond
</IfModule>

AuthName Cornell
AuthType all
#ShibRequestSetting redirectToSSL 443
#ShibRequestSetting requireSession 1
AuthBasicAuthoritative off
#
#Use the following to restrict access
#(w/o comments) use spaces not commas
#when multiple entries are needed
#
<FilesMatch "\.(php)$">
  #require noprompt
</FilesMatch>
