Skip to content

Commit

Permalink
Fix courses URL with htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed May 21, 2015
1 parent 643d3e6 commit eb90a2d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .htaccess
Expand Up @@ -16,10 +16,8 @@ RewriteRule ^certificates/$ certificates/index.php?id=%1 [L]
RewriteRule ^([^/.]+)/?$ user.php?$1 [L]

# Course redirection
RewriteCond %{QUERY_STRING} ^id_session=(.*)$
RewriteRule ^courses/([^/]+)/index.php$ main/course_home/course_home.php?cidReq=$1&id_session=%1 [L]
RewriteRule ^courses/([^/]+)/$ main/course_home/course_home.php?cidReq=$1&id_session=%1 [L]
RewriteRule ^courses/([^/]+)/index.php$ main/course_home/course_home.php?cidReq=$1 [L]
RewriteRule ^courses/([^/]+)/$ main/course_home/course_home.php?cidReq=$1 [QSA,L]
RewriteRule ^courses/([^/]+)/index.php$ main/course_home/course_home.php?cidReq=$1 [QSA,L]

# Rewrite everything in the scorm folder of a course to the download script
RewriteRule ^courses/([^/]+)/scorm/(.*)$ main/document/download_scorm.php?doc_url=/$2&cDir=$1 [QSA,L]
Expand Down

0 comments on commit eb90a2d

Please sign in to comment.