diff --git a/.htaccess b/.htaccess index a9f711bc41..87af61c989 100644 --- a/.htaccess +++ b/.htaccess @@ -30,7 +30,6 @@ RewriteRule ^courses/([^/]+)/scorm/(.*)$ main/document/download_scorm.php?doc_ur # 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] RewriteRule ^courses/([^/]+)/document/(.*)$ public/courses.php?courseCode=$1&url=$2 [L,NC] # Optimize load of custom per-course icons in courses (avoid download_uploaded_files.php) diff --git a/main/document/download.php b/main/document/download.php deleted file mode 100755 index ad863a1a37..0000000000 --- a/main/document/download.php +++ /dev/null @@ -1,123 +0,0 @@ -getProjectDir().'/var/cache/'.$this->environment; } - /** - * @return string - */ - public function getResourceCacheDir() - { - return $this->getProjectDir().'/var/cache/resource/'; - } - /** * @return string */