File:  [LON-CAPA] / loncom / rewrites / loncapa_rewrite_on.conf
Revision 1.7: download - view: text, annotated - select for diffs
Tue Jul 10 06:01:27 2018 UTC (5 years, 10 months ago) by raeburn
Branches: MAIN
CVS tags: HEAD
- Eliminate jsMath (MathJax used instead).
- Rewrite rule no longer needed for external tools with http URLs launch
  in iframe (lonwrapper.pm ensures launch in tab instead).

    1: <IfModule mod_ssl.c>
    2:   <IfModule mod_rewrite.c>
    3:     RewriteEngine on
    4:     RewriteCond %{REMOTE_HOST} 127.0.0.1
    5:     RewriteRule (.*) - [L]
    6:     RewriteCond %{REQUEST_URI} ^/adm/wrapper/ext/(?!https:)
    7:     RewriteRule (.*) - [L]
    8:     RewriteCond %{REQUEST_URI} ^/adm/annotations$
    9:     RewriteRule (.*) - [L]
   10:     RewriteCond %{REQUEST_URI} ^/public/.*/syllabus$
   11:     RewriteCond %{QUERY_STRING} (^|&)usehttp=1($|&)
   12:     RewriteRule (.*) - [L]
   13:     RewriteCond %{HTTPS} !=on
   14:     RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1 [R,L]
   15:   </IfModule>
   16: </IfModule>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>