Переглянути джерело

Adding an exception for "scorm_api.php"

Julio Montoya 11 роки тому
батько
коміт
fc881c268f
2 змінених файлів з 2 додано та 0 видалено
  1. 1 0
      .htaccess
  2. 1 0
      htaccess-dist

+ 1 - 0
.htaccess

@@ -16,6 +16,7 @@
     RewriteRule ^courses/(.*)/$ web/courses/$1? [R,L]
 
     # PHP Main files are redirected to the "web/main" zone
+    RewriteCond %{REQUEST_URI} !main/newscorm/scorm_api.php
     RewriteRule ^main/(.*)\.php web/main/$1.php [R,L]
 
     # Courses documents

+ 1 - 0
htaccess-dist

@@ -16,6 +16,7 @@
     RewriteRule ^courses/(.*)/$ web/courses/$1? [R,L]
 
     # PHP Main files are redirected to the "web/main" zone
+    RewriteCond %{REQUEST_URI} !main/newscorm/scorm_api.php
     RewriteRule ^main/(.*)\.php web/main/$1.php [R,L]
 
     # Courses documents