<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</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]-->
</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>Here is a summary of all the problems I've been having with
migrating from 6 to 7:<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>==========================================================================<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>Modified my hosts file so that when I go to our live website
it points at the new server.<o:p></o:p></p>

<p class=MsoNormal>Installed OpenCMS 7, imported site. All the site URLs are
wrong (when you go to <a href="http://www.tssi.co.uk">www.tssi.co.uk</a> on the
new server all the URLs on the pages have the wrong form - instead of being in
the form of <a
href="http://www.tssi.co.uk/products/biometric_security/fingerprint_reader_range.html">http://www.tssi.co.uk/products/biometric_security/fingerprint_reader_range.html</a>
they will be shown as <a
href="http://www.tssi.co.uk/sites/default/tssi/products/biometric_security/fingerprint_reader_range.html">http://www.tssi.co.uk/sites/default/tssi/products/biometric_security/fingerprint_reader_range.html</a>
- which of course doesn't work.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>I tried many and various forms of importing our site to the
new server (from / to /, from / to /sites/default/tssi etc etc ad nauseum)
produce exactly the same result. And trying to use the "rewrite URLS"
feature just adds another /sites/default/tssi onto the line to make it
/sites/default/tssi/sites/default/tssi…<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>The only way I could get it to work was by importing all the
website into the root of the OpenCMS heirarchy. Which isn't good. And as soon as
I moved it into the proper place we were back at the original error again -
almost like the URL parser doesn't know that the site lives in
/sites/default/tssi and so is trying to make sure that we can get to it. This
may be an artifact of how OpenCMS is set up underneath (in terms of where sites
are defined as being in relation to projects) but all the experimentation I did
I couldn't duplicate how OpenCMS 6 works in OpenCMS 7.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>So - today I tried the other approach:<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>Cloned our live site onto the test box (with OpenCMS 6) -
test site worked perfectly with all URLs showing up as they should be. Upgraded
the test box to OpenCMS 7 - exactly the same errors as the "set up from
new" configuration.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>In summary - I can't find any way of moving our site onto
OpenCMS 7 in its current form. And having spent 3 days trying to do it I
suspect it'll be quicker and easier to find some other way of doing it rather
than banging my head against the brick wall. And even manually going through
all the files is probably quicker than trying to get it working in OCMS 7.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>==========================================================================<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>It looks like the link parser has got confused and is
serving the site as if the site root is / instead of what it should be (sort of
like a fail chroot!). The site definition in opencms-system is as follows:<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>     
<default-uri>/sites/default/</default-uri><o:p></o:p></p>

<p class=MsoNormal>      <site
server="http://www.tssi.co.uk"
uri="/sites/default/tssi/"/><o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>I've edited the settings in opencms-importexport as follows:<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>                       
<rfs-prefix>/export</rfs-prefix><o:p></o:p></p>

<p class=MsoNormal>                       
<vfs-prefix></vfs-prefix><o:p></o:p></p>

<p class=MsoNormal>                       
<userelativelinks>false</userelativelinks><o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>(The userelativelinks is as standard - I didn't change that
at all).<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>These are changes to remove the /opencms/opencms from the
site URL.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>Is there any way I can force OpenCMS to recognise that the
effective chroot of the site is in the /sites/default/tssi directory and not /?<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>Cheers,<o:p></o:p></p>

<p class=MsoNormal>Phil<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Phil
Launchbury<br>
IT & Support Manager<br>
------------------------------------------------------<br>
TSSI Systems Ltd,<br>
Rutland House, Hargreaves Road,<br>
Groundwell Industrial Estate,<br>
Swindon, Wiltshire, SN25 5AZ, U.K.<br>
Tel: +44 (0) 1793 747736<br>
<br>
Support Helpdesk<br>
Tel: +44 (0) 8450 707 898<br>
Email: support@tssi.co.uk<br>
Website: www.tssi.co.uk<br>
<br>
'Securing Business Around the World'<br>
-------------------------------------------------------</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'> </span><o:p></o:p></p>

</div>


<BR>
This e-mail message (including any attachments) is from TSSI and intended for the addressee only. It may contain information that is privileged and confidential.  If you are not the intended recipient, you must not copy, distribute or take any action in reliance of it. If this communication has been sent to you in error, please notify us immediately by either replying to this e-mail or by telephoning our offices on (+44) 1793 747700. TSSI accept no responsibility for any changes made to this message after it has been sent by the original author. This email or any of its attachments may contain data that falls within the scope of the Data Protection Acts. You must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998.<BR>
TSSI Systems Ltd is a company registered in England And Wales with company number 05433732.<BR>
The TSSI Systems Ltd Registered Office address is Rutland House, Hargreaves Rd, Groundwell Industrial Estate, Swindon, Wiltshire, SN25 5AZ.<BR>
</body>

</html>