[Xerte-dev] Re: SCORM 1.2 export

Nikodem Miranowicz Nikodem.Miranowicz at nottingham.ac.uk
Mon Jul 14 15:33:23 BST 2014


It seems that the order of rewriteRules in htaccess is responsible for this (One can export scorm 2004 but not scorm 1.2).

The order of rules is now:
rewriteRule ^scorm2004_([0-9]+)?(.*)$ */website_code/php/scorm/export.php?template_id=$1&scorm=2004&$2
rewriteRule ^scorm_([0-9]+)?(.*)$ */website_code/php/scorm/export.php?template_id=$1&scorm=true&$2
rewriteRule ^scorm_rich_([0-9]+)?(.*)$ */website_code/php/scorm/export.php?template_id=$1&data=rich&scorm=true&$2
Where greedy "scorm_([0-9]" apparently spoils "scorm_rich_([0-9]".

My suggestion -

1.       (tested): change this order (in \setup\htaccess.conf ) to:
rewriteRule ^scorm2004_([0-9]+)?(.*)$ */website_code/php/scorm/export.php?template_id=$1&scorm=2004&$2
rewriteRule ^scorm_rich_([0-9]+)?(.*)$ */website_code/php/scorm/export.php?template_id=$1&data=rich&scorm=true&$2
rewriteRule ^scorm_([0-9]+)?(.*)$ */website_code/php/scorm/export.php?template_id=$1&scorm=true&$2

2.       or (untested): use [L] flag.

The same should be with lines:
rewriteRule ^export_...
rewriteRule ^export_full_...
rewriteRule ^export_local_...

Niko

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 11 July 2014 13:38
To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk)
Subject: [Xerte-dev] SCORM 1.2 export

SCORM 1.2 export isn't working here: nothing happens, nothing exports.

Any idea?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20140714/7f219b1d/attachment.html>


More information about the Xerte-dev mailing list