web.config 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <rewrite>
  5. <rules>
  6. <rule name="rule 1v" stopProcessing="true">
  7. <match url="^certificates/$" />
  8. <action type="Rewrite" url="/certificates/index.php?id=%1" />
  9. </rule>
  10. <rule name="rule 2v" stopProcessing="true">
  11. <match url="^courses/([^/]+)/?$" />
  12. <action type="Rewrite" url="/main/course_home/course_home.php?cDir={R:1}" appendQueryString="true" />
  13. </rule>
  14. <rule name="rule 3v" stopProcessing="true">
  15. <match url="^courses/([^/]+)/index.php$" />
  16. <action type="Rewrite" url="/main/course_home/course_home.php?cDir={R:1}" appendQueryString="true" />
  17. </rule>
  18. <rule name="rule 4v" stopProcessing="true">
  19. <match url="^courses/([^/]+)/scorm/(.*)$" />
  20. <action type="Rewrite" url="/main/document/download_scorm.php?doc_url=/{R:2}&amp;cDir={R:1}" appendQueryString="true" />
  21. </rule>
  22. <rule name="rule 5v" stopProcessing="true">
  23. <match url="^courses/([^/]+)/document/certificates/(.*)$" />
  24. <action type="Rewrite" url="/app/courses/{R:1}/document/certificates/{R:2}" appendQueryString="true" />
  25. </rule>
  26. <rule name="rule 6v" stopProcessing="true">
  27. <match url="^courses/([^/]+)/document/(.*)$" />
  28. <action type="Rewrite" url="/main/document/download.php?doc_url=/{R:2}&amp;cDir={R:1}" appendQueryString="true" />
  29. </rule>
  30. <rule name="rule 7v" stopProcessing="true">
  31. <match url="^courses/([^/]+)/upload/([^/]+)/(.*)$" />
  32. <action type="Rewrite" url="/main/document/download_uploaded_files.php?code={R:1}&amp;type={R:2}&amp;file={R:3}" appendQueryString="true" />
  33. </rule>
  34. <rule name="rule 8v" stopProcessing="true">
  35. <match url="^courses/([^/]+)/work/(.*)$" />
  36. <action type="Rewrite" url="/main/work/download.php?file=work/{R:2}&amp;cDir={R:1}" appendQueryString="true" />
  37. </rule>
  38. <rule name="rule 9v" stopProcessing="true">
  39. <match url="^courses/([^/]+)/course-pic85x85.png$" />
  40. <action type="Rewrite" url="/main/inc/ajax/course.ajax.php?a=get_course_image&amp;code={R:1}&amp;image=course_image_source" appendQueryString="true" />
  41. </rule>
  42. <rule name="rule 10v" stopProcessing="true">
  43. <match url="^courses/([^/]+)/course-pic.png$" />
  44. <action type="Rewrite" url="/main/inc/ajax/course.ajax.php?a=get_course_image&amp;code={R:1}&amp;image=course_image_large_source" appendQueryString="true" />
  45. </rule>
  46. <rule name="rule 11v" stopProcessing="true">
  47. <match url="^courses/([^/]+)/(.*)$" />
  48. <action type="Rewrite" url="/app/courses/{R:1}/{R:2}" appendQueryString="true" />
  49. </rule>
  50. <rule name="rule 12v" stopProcessing="true">
  51. <match url="^session/(\d{1,})/about/?$" />
  52. <action type="Rewrite" url="/main/session/about.php?session_id={R:1}" />
  53. </rule>
  54. <rule name="rule 13v" stopProcessing="true">
  55. <match url="^badge/(\d{1,})" />
  56. <action type="Rewrite" url="/main/badge/issued.php?issue={R:1}" />
  57. </rule>
  58. <rule name="rule 14v" stopProcessing="true">
  59. <match url="^skill/(\d{1,})/user/(\d{1,})" />
  60. <action type="Rewrite" url="/main/badge/issued_all.php?skill={R:1}&amp;user={R:2}" />
  61. </rule>
  62. <rule name="rule 15v" stopProcessing="true">
  63. <match url="^badge/(\d{1,})/user/(\d{1,})" />
  64. <action type="Rewrite" url="/main/badge/issued_all.php?skill={R:1}&amp;user={R:2}" />
  65. </rule>
  66. <rule name="rule 16v" stopProcessing="true">
  67. <match url="^main/exercice/(.*)$" />
  68. <action type="Rewrite" url="/main/exercise/{R:1}" appendQueryString="true" />
  69. </rule>
  70. <rule name="rule 17v" stopProcessing="true">
  71. <match url="^main/newscorm/(.*)$" />
  72. <action type="Rewrite" url="/main/lp/{R:1}" appendQueryString="true" />
  73. </rule>
  74. <rule name="rule 18v" stopProcessing="true">
  75. <match url="^service/(\d{1,})$" />
  76. <action type="Rewrite" url="/plugin/buycourses/src/service_information.php?service_id={R:1}" />
  77. </rule>
  78. <rule name="rule 19v" stopProcessing="true">
  79. <match url="^([^/.]+)/?$" />
  80. <action type="Rewrite" url="/user.php?{R:1}" />
  81. </rule>
  82. <rule name="rule 20v" stopProcessing="true">
  83. <match url="^(tests|.git)" ignoreCase="true" />
  84. <action type="Rewrite" url="/-" />
  85. </rule>
  86. </rules>
  87. </rewrite>
  88. </system.webServer>
  89. </configuration>