From b6be4224a717f8f140dfb7f0b21be7f470b0126c Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Fri, 8 Jul 2016 11:33:52 -0500 Subject: [PATCH] Add temporary patch to make certificates media publicly accessible --- .htaccess | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.htaccess b/.htaccess index 02f247bf80..7fa1115808 100644 --- a/.htaccess +++ b/.htaccess @@ -23,6 +23,8 @@ RewriteRule ^courses/([^/]+)/index.php$ main/course_home/course_home.php?cDir=$1 RewriteRule ^courses/([^/]+)/scorm/(.*)$ main/document/download_scorm.php?doc_url=/$2&cDir=$1 [QSA,L] # Rewrite everything in the document folder of a course to the download script +# Except certificate resources, which might need to be accessible publicly to all +RewriteRule ^courses/([^/]+)/document/certificates/(.*)$ app/courses/$1/document/certificates/$2 [QSA,L] RewriteRule ^courses/([^/]+)/document/(.*)$ main/document/download.php?doc_url=/$2&cDir=$1 [QSA,L] # Rewrite everything in the work folder