<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Ok,</div><div><br></div><div>The engine for HTML is html5 ?</div><div><br>On 25 Apr 2013, at 23:50, <a href="mailto:xerte@pgogywebstuff.com">xerte@pgogywebstuff.com</a> wrote:<br><br></div><blockquote type="cite"><div><div>Hello,</div><div><br></div><div>HTaccess debugging</div><div><br></div><div>One, the default engine link in the wizard *to me* doesn't follow the HTaccess approach</div><div><br></div><div>So here are some new HTaccess rules</div><div><br></div><div>These will work on a localhost/xertetoolkts install if </div><div><br></div><div>rewriteBase /xertetoolkits is on</div><div><br></div><div><div>rewriteRule ^preview_([A-Za-z0-9]+)_([A-Za-z0-9]+)$ preview.php?template_id=$1&linkID=$2</div><div>rewriteRule ^preview_([A-Za-z0-9]+)_([A-Za-z]+)$ preview.php?template_id=$1&engine=$2</div><div>rewriteRule ^preview_([A-Za-z0-9]+)_([A-Za-z]+)_([A-Za-z0-9]+)$ preview.php?template_id=$1&engine=$2&linkID=$3</div></div><div><br></div><div>In the wizard the following toggle needs to apply (I don't have flash on this computer)</div><div><br></div><div>If apache is set the link becomes</div><div><br></div><div>preview_idnumber</div><div><br></div><div>if control is held down then then link is</div><div><br></div><div>preview_idnumber_linkID</div><div><br></div><div>if control is held down then the link is</div><div><br></div><div>preview_idnumber_enginename (enginename is always text only  - no numbers and no ascii)</div><div><br></div><div>if control and shift are both held down</div><div><br></div><div>preview_idnumber_enginename_linkID<span class="Apple-tab-span">                                                       </span></div><div><br></div><div>Note enginename comes before linkID</div><div><br></div><div>I don't have flash to fix this at home, but if some one can put the ifs into the wizard that should fix it</div> <br>Pgogy Webstuff <a href="http://www.pgogywebstuff.com">http://www.pgogywebstuff.com</a><div>Makers of Web things of a fair to middling quality</div><br><blockquote><br>----- Original Message -----<br><div style="width:100%;background:rgb(228,228,228);"><div style="font-weight:bold;">From:</div> "For Xerte technical developers" <<a href="mailto:xerte-dev@lists.nottingham.ac.uk">xerte-dev@lists.nottingham.ac.uk</a>></div><br><div style="font-weight:bold;">To:</div>"For Xerte technical developers" <<a href="mailto:xerte-dev@lists.nottingham.ac.uk">xerte-dev@lists.nottingham.ac.uk</a>><br><div style="font-weight:bold;">Cc:</div><br><div style="font-weight:bold;">Sent:</div>Thu, 25 Apr 2013 23:18:41 +0100<br><div style="font-weight:bold;">Subject:</div>[Xerte-dev] Re: .htaccess<br><br><br><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><div>
  
    
  
  
    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>
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D;">Hi Tom</span></p><p></p><p></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</p><p></p><p></p>
        <p class="MsoNormal"></p><p> </p><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 :-(</span></p><p></p><p></p>
        <p class="MsoNormal"><span style="color:#1F497D;"></span></p><p> </p><p></p>
        <p class="MsoNormal"><span style="color:#1F497D;">Happy to test
            export additions?</span></p><p></p><p></p>
        <p class="MsoNormal"><span style="color:#1F497D;"></span></p><p> </p><p></p>
        <p class="MsoNormal"><span style="color:#1F497D;">I think ideally
            we need a definitive \setup\htaccess.conf for people to use
            for reference.</span></p><p></p><p></p>
        <p class="MsoNormal"><span style="color:#1F497D;"></span></p><p> </p><p></p>
        <p class="MsoNormal"><span style="color:#1F497D;">Cheers</span></p><p></p><p></p>
        <p class="MsoNormal"><span style="color:#1F497D;">Ron</span></p><p></p><p></p>
        <p class="MsoNormal"><span style="color:#1F497D;"></span></p><p> </p><p></p>
        <p class="MsoNormal"><span style="color:#1F497D;"></span></p><p> </p><p></p>
        <p class="MsoNormal"><a><span style="color:#1F497D;"></span></a></p><p><a> </a></p><p></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF 1pt;padding:3pt 0cm 0cm 0cm;">
            <p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma, 'sans-serif';" lang="en-us" xml:lang="en-us">From:</span></b><span style="font-size:10pt;font-family:Tahoma, 'sans-serif';" lang="en-us" xml: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</span></p><p></p><p></p>
          </div>
        </div>
        <p class="MsoNormal"></p><p> </p><p></p>
        <p class="MsoNormal" style="margin-bottom:12pt;">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</p><p></p><p></p>
        <div>
          <p class="MsoNormal">Op 25-4-2013 11:03, Julian Tenney
            schreef:</p><p></p><p></p>
        </div>
        <blockquote style="margin-top:5pt;margin-bottom:5pt;">
          <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_sitephp and play_site.php? I’m not
              sure if it affects what you’re talking about or not?</span></p><p></p><p></p>
          <p class="MsoNormal"><span style="color:#1F497D;"> </span></p><p></p><p></p>
          <div>
            <div style="border:none;border-top:solid #B5C4DF 1pt;padding:3pt 0cm 0cm 0cm;">
              <p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma, 'sans-serif';" lang="en-us" xml:lang="en-us">From:</span></b><span style="font-size:10pt;font-family:Tahoma, 'sans-serif';" lang="en-us" xml:lang="en-us"> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>
                  [<a 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></p><p></p><p></p>
            </div>
          </div>
          <p class="MsoNormal"> </p><p></p><p></p>
          <p class="MsoNormal" style="margin-bottom:12pt;">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</p><p></p><p></p>
          <div>
            <p class="MsoNormal">Op 25-4-2013 10:09, Julian Tenney
              schreef:</p><p></p><p></p>
          </div>
          <blockquote style="margin-top:5pt;margin-bottom:5pt;">
            <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
                templateruntime = ‘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></p><p></p><p></p>
            <p class="MsoNormal"><span style="color:#1F497D;"> </span></p><p></p><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></p><p></p><p></p>
            <p class="MsoNormal"><span style="color:#1F497D;"> </span></p><p></p><p></p>
            <div>
              <div style="border:none;border-top:solid #B5C4DF 1pt;padding:3pt 0cm 0cm 0cm;">
                <p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma, 'sans-serif';" lang="en-us" xml:lang="en-us">From:</span></b><span style="font-size:10pt;font-family:Tahoma, 'sans-serif';" lang="en-us" xml:lang="en-us"> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>
                    [<a 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></p><p></p><p></p>
              </div>
            </div>
            <p class="MsoNormal"> </p><p></p><p></p>
            <div>
              <p class="MsoNormal">Looks like something is up in the
                engine as well?</p><p></p><p></p>
            </div>
            <div>
              <p class="MsoNormal" style="margin-bottom:12pt;"><br>
                On 24 Apr 2013, at 19:41, Tom Reijnders <<a href="mailto:reijnders@tor.nl">reijnders@tor.nl</a>>
                wrote:</p><p></p><p></p>
            </div>
            <blockquote style="margin-top:5pt;margin-bottom:5pt;">
              <div>
                <p class="MsoNormal">Ah ok. olet me work on the
                  rewriteRule, because it doesn't allow for extra
                  parameters now......</p><p></p><p></p>
                <div>
                  <p class="MsoNormal">Op 24-4-2013 18:11, Ron Mitchell
                    schreef:</p><p></p><p></p>
                </div>
                <blockquote style="margin-top:5pt;margin-bottom:5pt;">
                  <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 href="http://vlejisctechdis.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></p><p></p><p></p>
                  <p class="MsoNormal"><span style="color:#1F497D;"> </span></p><p></p><p></p>
                  <p class="MsoNormal"><span style="color:#1F497D;">What
                      needs to change or be added to the .htaccess?</span></p><p></p><p></p>
                  <p class="MsoNormal"><span style="color:#1F497D;"> </span></p><p></p><p></p>
                  <p class="MsoNormal"><span style="color:#1F497D;">e.g.</span></p><p></p><p></p>
                  <p class="MsoNormal"><span style="color:#1F497D;">rewriteRule
                      ^preview_([A-Za-z0-9]+)$
                      /xerte/preview.php?template_id=$1</span></p><p></p><p></p>
                  <p class="MsoNormal"><span style="color:#1F497D;"> </span></p><p></p><p></p>
                  <p class="MsoNormal"><span style="color:#1F497D;">I
                      think it's a similar problem for the export links.</span></p><p></p><p></p>
                  <p class="MsoNormal"><span style="color:#1F497D;"> </span></p><p></p><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></p><p></p><p></p>
                  <p class="MsoNormal"><span style="color:#1F497D;"> </span></p><p></p><p></p>
                  <p class="MsoNormal"><span style="color:#1F497D;">HTH</span></p><p></p><p></p>
                  <p class="MsoNormal"><span style="color:#1F497D;">Cheers</span></p><p></p><p></p>
                  <p class="MsoNormal"><span style="color:#1F497D;">Ron</span></p><p></p><p></p>
                  <p class="MsoNormal"><span style="color:#1F497D;"> </span></p><p></p><p></p>
                  <div>
                    <div style="border:none;border-top:solid #B5C4DF 1pt;padding:3pt 0cm 0cm 0cm;">
                      <p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma, 'sans-serif';" lang="en-us" xml:lang="en-us">From:</span></b><span style="font-size:10pt;font-family:Tahoma, 'sans-serif';" lang="en-us" xml:lang="en-us"> <a href="mailto:xerte-dev-bounces@lists.nottingham.acuk">xerte-dev-bounces@lists.nottingham.ac.uk</a>
                          [<a 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><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.nottinghamac.uk/mailman/listinfo/xerte-dev</a></span><br></div></blockquote>
<br><br><br></blockquote>
<br><br>
<br>
</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>