[Xerte-dev] Re: .htaccess

Tom Reijnders reijnders at tor.nl
Mon Apr 29 08:50:53 BST 2013


I understand that, but it is sometime cubersome to maintain. You need to 
change the htaccess file itself, and the URLS generated by the code.

So, that's why I 'warned' you that the attached file might not do what 
you want, but it is easier to maintain.


Op 29-4-2013 9:04, Pat @ Pgogy schreef:
> Sorry, meant "removes the need for it"
>
> On 29 Apr 2013, at 07:07, Tom Reijnders <reijnders at tor.nl 
> <mailto:reijnders at tor.nl>> wrote:
>
>> Not that I know of.
>>
>> Op 29-4-2013 2:00, Pat @ Pgogy schreef:
>>> I'm not sure mixing a htaccess with a ? Makes sense, as mod rewrite 
>>> removes that?
>>>
>>> I
>>>
>>> On 28 Apr 2013, at 14:15, Tom Reijnders <reijnders at tor.nl 
>>> <mailto:reijnders at tor.nl>> wrote:
>>>
>>>> Only if you replace the /xerte with * again.
>>>>
>>>> And, please note, it solves the play and preview differently than 
>>>> your suggestion.
>>>>
>>>> For play your  suggestion accepts play_126_javascript, whereas my 
>>>> solution accepts play_126?engine=javascript. The latter because 
>>>> that's the way the wizard works now.
>>>>
>>>> play_126 will choose the engine based on the default engine chosen 
>>>> by the author.
>>>>
>>>> Tom
>>>>
>>>> P.S.  I don't understand why your modifications work, when the 
>>>> original line doesn't, but I am glad it does.. :-)
>>>>
>>>>
>>>>
>>>>
>>>> Op 28-4-2013 14:51, Pat @ Pgogy schreef:
>>>>> Is the htaccess.conf ok
>>>>>
>>>>> Also the play/preview rules?
>>>>>
>>>>> On 28 Apr 2013, at 13:50, "Ron Mitchell" <ronm at mitchellmedia.co.uk 
>>>>> <mailto:ronm at mitchellmedia.co.uk>> wrote:
>>>>>
>>>>>> Hi Tom
>>>>>>
>>>>>> no need. :-)
>>>>>>
>>>>>> The attached works for me!
>>>>>>
>>>>>> Basically changed the order of things in a couple of the export 
>>>>>> rules:
>>>>>>
>>>>>> previous line 54
>>>>>>
>>>>>> rewriteRule ^export_full_([0-9]+)?(.*)$ 
>>>>>> /xerte/website_code/php/scorm/export.php?full=true&template_id=$1&scorm=false&$2
>>>>>>
>>>>>> new
>>>>>>
>>>>>> rewriteRule ^export_full_([0-9]+)?(.*)$ 
>>>>>> /xerte/website_code/php/scorm/export.php?full=true&scorm=false&template_id=$1&$2
>>>>>>
>>>>>> previous 70
>>>>>>
>>>>>> rewriteRule ^scorm_rich_([0-9]+)?(.*)$ 
>>>>>> /xerte/website_code/php/scorm/export.php?template_id=$1&data=rich&scorm=true&$2
>>>>>>
>>>>>> new
>>>>>>
>>>>>> rewriteRule ^scorm_rich_([0-9]+)?(.*)$ 
>>>>>> /xerte/website_code/php/scorm/export.php?data=rich&scorm=true&template_id=$1&$2
>>>>>>
>>>>>> Cheers
>>>>>>
>>>>>> Ron
>>>>>>
>>>>>> *From:*xerte-dev-bounces at lists.nottingham.ac.uk 
>>>>>> <mailto:xerte-dev-bounces at lists.nottingham.ac.uk> 
>>>>>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of 
>>>>>> *Tom Reijnders
>>>>>> *Sent:* 28 April 2013 11:38
>>>>>> *To:* For Xerte technical developers
>>>>>> *Subject:* [Xerte-dev] Re: .htaccess
>>>>>>
>>>>>> Ok, I'll have a look, at why those don't work. I'll try to set it 
>>>>>> up on one of my installations. Bit easier to test... ;-)
>>>>>>
>>>>>> Tom
>>>>>>
>>>>>> Op 28-4-2013 11:39, Ron Mitchell schreef:
>>>>>>
>>>>>>     Hi Tom
>>>>>>
>>>>>>     my apologies. I just tracked back through my messages and
>>>>>>     missed your updated .htaccess partly because you'd renamed it
>>>>>>     as .txt but that's no excuse for not reading your message
>>>>>>     properly! :-(
>>>>>>
>>>>>>     I've just put that in place and it seems deployment and 2004
>>>>>>     export works but not archive or 1.2?
>>>>>>
>>>>>>     <image001.jpg>
>>>>>>
>>>>>>     Being dragged out now so will be offline for an hour or two :-0
>>>>>>
>>>>>>     Cheers
>>>>>>
>>>>>>     Ron
>>>>>>
>>>>>>     *From:*xerte-dev-bounces at lists.nottingham.ac.uk
>>>>>>     <mailto:xerte-dev-bounces at lists.nottingham.ac.uk>
>>>>>>     [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf
>>>>>>     Of *Tom Reijnders
>>>>>>     *Sent:* 28 April 2013 10:22
>>>>>>     *To:* For Xerte technical developers
>>>>>>     *Subject:* [Xerte-dev] Re: .htaccess
>>>>>>
>>>>>>     Ron,
>>>>>>
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk 
>> <mailto:Xerte-dev at lists.nottingham.ac.uk>
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
>
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

-- 
--

Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20130429/04d33d42/attachment-0001.html>


More information about the Xerte-dev mailing list