Htaccess File

HotChalk/canvas-lms/master/public/.htaccess

DEFLATE, HTTP_HOST, QUERY_STRING
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript application/json
</IfModule>

# LMS-1155: This is temporary, remove as soon as CUP updates configuration
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP_HOST} hotchalklearn.com$ [NC]
  RewriteRule ^(.*)$ https://hotchalkember.com/$1 [L,R=301]
  RewriteCond %{QUERY_STRING} !account_id=
  RewriteRule ^login/hmac     login/hmac?account_id=1 [QSA]
  RewriteRule ^login2     login/canvas?direct=1 [QSA]
</IfModule>
Exit mobile version