[Xerte-dev] Re: .htaccess

Tom Reijnders reijnders at tor.nl
Thu Apr 25 10:10:45 BST 2013


No, the wizard tries to load preview.php and play.php, but it doesn't 
add any sizes to the url, like the xerte play and preview do.


The issue with .htaccess and xerte preview is that now you can have url 
parameters added to the .htaccess urls, like play_126?engine=other, and 
the rules don't handle the ?engine=other properly. I sent a fix for Ron 
to try by PM, because I couldn't send anything to the list for some 30 
minutes.


Tom

Op 25-4-2013 11:03, Julian Tenney schreef:
>
> OK. Does it impact the re-write rule? At this point I'd rather just 
> make it work, than be graceful... what I think it means is that for 
> bootstrap tempaltes, the url the wizard tries to load will be 
> preview_site.php and play_site.php? I'm not sure if it affects what 
> you're talking about or not?
>
> *From:*xerte-dev-bounces at lists.nottingham.ac.uk 
> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Tom 
> Reijnders
> *Sent:* 25 April 2013 10:01
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: .htaccess
>
> I didn't change it (combine preview of site and xerte) because the url 
> parameters were different, and I felt we hadn't time to test changes 
> thoroughly enough, so at the moment I only changed the absolute minimum.
>
> Tom
>
> Op 25-4-2013 10:09, Julian Tenney schreef:
>
>     In the wizard (I think you mean) is code that launches the site
>     template that does something along the lines of (if
>     template.runtime = 'preview_site.php') blah which launches the
>     site template in the preview_site page. If you remember, way back
>     when, when we originally anticipated different runtimes, we had a
>     runtime param in the xwd file to point to alternative renderers
>     for content. If you want to look it's in function preview()
>
>     I would have thought that when the recent modularisation stuff was
>     done, this might have been made redundant, or handled differently,
>     and maybe this code should change? But I don't have enough sight
>     of the other side of the coin to know how?
>
>     *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
>     *Pat @ Pgogy
>     *Sent:* 24 April 2013 20:35
>     *To:* For Xerte technical developers
>     *Subject:* [Xerte-dev] Re: .htaccess
>
>     Looks like something is up in the engine as well?
>
>
>     On 24 Apr 2013, at 19:41, Tom Reijnders <reijnders at tor.nl
>     <mailto:reijnders at tor.nl>> wrote:
>
>         Ah ok. olet me work on the rewriteRule, because it doesn't
>         allow for extra parameters now......
>
>         Op 24-4-2013 18:11, Ron Mitchell schreef:
>
>             Just been testing this a bit more and for instance with
>             the editor open clicking play to preview works fine with
>             Apache/.htaccess enabled or not but clicking Ctrl + Play
>             with Apache/.htaccess enabled results in
>             http://vle.jisctechdis.ac.uk/xerte/preview_310&engine=other and
>             so doesn't work ends up with a page not found
>
>             What needs to change or be added to the .htaccess?
>
>             e.g.
>
>             rewriteRule ^preview_([A-Za-z0-9]+)$
>             /xerte/preview.php?template_id=$1
>
>             I think it's a similar problem for the export links.
>
>             I think this is an important issue for those using
>             .htaccess previously (e.g. Nottingham) because if Apache
>             was switched off via management existing links would
>             obviously break. But at the moment with Apache enabled I
>             don't think export and Ctrl + Play works.
>
>             HTH
>
>             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 *Pat @ Pgogy
>             *Sent:* 22 April 2013 20:05
>             *To:* For Xerte technical developers
>             *Subject:* [Xerte-dev] Re: .htaccess
>
>             Nothing I've done alters the rules I think
>
>             Pgogy Webstuff - http://www.pgogywebstuff.com
>
>             Makers of web things of a fair to middling quality
>
>
>             On 22 Apr 2013, at 18:29, "Ron Mitchell"
>             <ronm at mitchellmedia.co.uk
>             <mailto:ronm at mitchellmedia.co.uk>> wrote:
>
>                 Hi
>
>                 has anyone updated the .htaccess rules for the latest
>                 version?
>
>                 I have three different installations on the Techdis
>                 server that I've upgraded now and only just noticed
>                 that export doesn't work on the installation using
>                 .htaccess whereas it did previously so I'm guessing
>                 some of the export rules need amending. Anyone tried
>                 this yet and/or updated the rules?
>
>                 Cheers
>
>                 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  <mailto: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
>
>           
>
>
>
>
>         _______________________________________________
>         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  <mailto: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
>   
>
>
>
>
>
> _______________________________________________
> 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/20130425/3e814466/attachment-0001.html>


More information about the Xerte-dev mailing list