<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>I am now working in this area, let me see</div><div><br>On 25 Apr 2013, at 20:40, Tom Reijnders <<a href="mailto:reijnders@tor.nl">reijnders@tor.nl</a>> wrote:<br><br></div><blockquote type="cite"><div>
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  
    Ehmm, can I have your version of the .htacces?<br>
    <br>
    I mean how does you normal preview look?<br>
    <br>
    I don't understand the /xerte/preview<br>
    <br>
    The difference should be the ?(.*) before the $ and the &$2 at
    the end.<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Op 25-4-2013 20:44, Ron Mitchell
      schreef:<br>
    </div>
    <blockquote cite="mid:000901ce41e4$f9995e90$eccc1bb0$@co.uk" type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Times New Roman \, serif";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle25
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D">Hi Tom<o:p></o:p></span></p>
        <p class="MsoNormal">rewriteRule ^preview_([A-Za-z0-9]+)?(.*)$
          */preview.php?template_id=$1&$2 worked for Ctrl + Play
          preview although I obviously had to change it to
          /xerte/preview.php rather than */preview.php<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span style="color:#1F497D">I tried
            applying the same principal to one of the export rules but
            that didn't work - probably due to my lack of knowledge of
            regular expressions etc :-(<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Happy to test
            export additions?<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">I think ideally
            we need a definitive \setup\htaccess.conf for people to use
            for reference.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Cheers<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Ron<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><a moz-do-not-send="true" name="_MailEndCompose"><span style="color:#1F497D"><o:p> </o:p></span></a></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext" lang="EN-US"> <a class="moz-txt-link-abbreviated" href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>
                [<a class="moz-txt-link-freetext" href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On
                  Behalf Of </b>Tom Reijnders<br>
                <b>Sent:</b> 25 April 2013 10:11<br>
                <b>To:</b> For Xerte technical developers<br>
                <b>Subject:</b> [Xerte-dev] Re: .htaccess<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal" style="margin-bottom:12.0pt">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.<br>
          <br>
          <br>
          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.<br>
          <br>
          <br>
          Tom<o:p></o:p></p>
        <div>
          <p class="MsoNormal">Op 25-4-2013 11:03, Julian Tenney
            schreef:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal"><span style="color:#1F497D">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?</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
          <div>
            <div style="border:none;border-top:solid #B5C4DF
              1.0pt;padding:3.0pt 0cm 0cm 0cm">
              <p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext" lang="EN-US"> <a moz-do-not-send="true" href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>
                  [<a moz-do-not-send="true" href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>]
                  <b>On Behalf Of </b>Tom Reijnders<br>
                  <b>Sent:</b> 25 April 2013 10:01<br>
                  <b>To:</b> For Xerte technical developers<br>
                  <b>Subject:</b> [Xerte-dev] Re: .htaccess</span><o:p></o:p></p>
            </div>
          </div>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal" style="margin-bottom:12.0pt">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.<br>
            <br>
            Tom<o:p></o:p></p>
          <div>
            <p class="MsoNormal">Op 25-4-2013 10:09, Julian Tenney
              schreef:<o:p></o:p></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <p class="MsoNormal"><span style="color:#1F497D">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()</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span style="color:#1F497D">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?</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
            <div>
              <div style="border:none;border-top:solid #B5C4DF
                1.0pt;padding:3.0pt 0cm 0cm 0cm">
                <p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <a moz-do-not-send="true" href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>
                    [<a moz-do-not-send="true" href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>]
                    <b>On Behalf Of </b>Pat @ Pgogy <br>
                    <b>Sent:</b> 24 April 2013 20:35<br>
                    <b>To:</b> For Xerte technical developers<br>
                    <b>Subject:</b> [Xerte-dev] Re: .htaccess</span><o:p></o:p></p>
              </div>
            </div>
            <p class="MsoNormal"> <o:p></o:p></p>
            <div>
              <p class="MsoNormal">Looks like something is up in the
                engine as well?<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal" style="margin-bottom:12.0pt"><br>
                On 24 Apr 2013, at 19:41, Tom Reijnders <<a moz-do-not-send="true" href="mailto:reijnders@tor.nl">reijnders@tor.nl</a>>
                wrote:<o:p></o:p></p>
            </div>
            <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
              <div>
                <p class="MsoNormal">Ah ok. olet me work on the
                  rewriteRule, because it doesn't allow for extra
                  parameters now......<o:p></o:p></p>
                <div>
                  <p class="MsoNormal">Op 24-4-2013 18:11, Ron Mitchell
                    schreef:<o:p></o:p></p>
                </div>
                <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
                  <p class="MsoNormal"><span style="color:#1F497D">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 <a moz-do-not-send="true" href="http://vle.jisctechdis.ac.uk/xerte/preview_310&engine=other">http://vle.jisctechdis.ac.uk/xerte/preview_310&engine=other</a>
                      and so doesn't work ends up with a page not found</span><o:p></o:p></p>
                  <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
                  <p class="MsoNormal"><span style="color:#1F497D">What
                      needs to change or be added to the .htaccess?</span><o:p></o:p></p>
                  <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
                  <p class="MsoNormal"><span style="color:#1F497D">e.g.</span><o:p></o:p></p>
                  <p class="MsoNormal"><span style="color:#1F497D">rewriteRule
                      ^preview_([A-Za-z0-9]+)$
                      /xerte/preview.php?template_id=$1</span><o:p></o:p></p>
                  <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
                  <p class="MsoNormal"><span style="color:#1F497D">I
                      think it's a similar problem for the export links.</span><o:p></o:p></p>
                  <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
                  <p class="MsoNormal"><span style="color:#1F497D">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.</span><o:p></o:p></p>
                  <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
                  <p class="MsoNormal"><span style="color:#1F497D">HTH</span><o:p></o:p></p>
                  <p class="MsoNormal"><span style="color:#1F497D">Cheers</span><o:p></o:p></p>
                  <p class="MsoNormal"><span style="color:#1F497D">Ron</span><o:p></o:p></p>
                  <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
                  <div>
                    <div style="border:none;border-top:solid #B5C4DF
                      1.0pt;padding:3.0pt 0cm 0cm 0cm">
                      <p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <a moz-do-not-send="true" href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>
                          [<a moz-do-not-send="true" href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>]
                          <b>On Behalf Of </b>Pat @ Pgogy<br>
                          <b>Sent:</b> 22 April 2013 20:05<br>
                          <b>To:</b> For Xerte technical developers<br>
                          </span></p></div></div></blockquote></div></blockquote></blockquote></blockquote></div></blockquote></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Xerte-dev mailing list</span><br><span><a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a></span><br><span><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a></span><br></div></blockquote></body></html>