Return to loncapa_rewrite_off.conf CVS log | Up to [LON-CAPA] / loncom / rewrites |
- Append ?usehttp=1 to link to syllabus where LON-CAPA syllabus is configured to use external http:// URL, but LON-CAPA server uses https:// to avoid mixed active content issue (see also bug 6662). - Preview of external http:// URL displayed in separate pop-up window instead of in modal window on https:// server.
1: <IfModule mod_ssl.c> 2: <IfModule mod_rewrite.c> 3: RewriteEngine off 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 %{REQUEST_URI} ^/adm/jsMath/ 14: RewriteRule (.*) - [L] 15: RewriteCond %{REQUEST_URI} ^(/adm/wrapper|)/adm/.*/exttool$ 16: RewriteRule (.*) - [L] 17: RewriteCond %{HTTPS} !=on 18: RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1 [R,L] 19: </IfModule> 20: </IfModule>