Redirecting the course homepage

In some very specific cases, Dokeos users might want to redirect a course’s homepage to one of the sub-elements of the course. This is not possible via the Dokeos web interface, but you can easily modify the default behaviour by changing the dokeos/courses/[COURSE_DIR]/index.php file.

Inside that file, you will find something like this:

$cidReq = “ABC”;
$dbname = “ABC”;


This effectively presets the course environment and then includes the course homepage.

You can change this by commenting all that code and directly pointing to a document, for example:




Note that if you have mod_rewrite enabled in Apache, and have activated the .htaccess mecanism, this will be sent to a download.php script which will check permissions to access this document before showing it to the user.