<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Dear Phil<br>
<br>
I am a bit confused by what you write.<br>
With my site, I also have links like /sites/default/foo/bar.html and
nonetheless the pages are generated with links like /foo/bar.html<br>
<br>
In which editor do you get links like
<a class="moz-txt-link-freetext" 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>?<br>
Do you have them in the HTML editor or do you only have them when you
do "edit controlcode"?<br>
<br>
For me, the controlcode uses urls starting with /sites/default but the
HTML editor does not. And when I request page contents from opencms,
then opencms will return working links that have no site root inside of
them. Could it be that your templates are reading the content of your
pages in some non-standard way and that some internal functionality has
been restructured so that you now miss out on the automatic conversion
from internal references to their external representation?<br>
<br>
I hat no problems of this kind during my upgrade from 6 to 7 (I used
the upgrade wizard to update my existing installation which worked fine
and also did not require any changes of the site configuration; My main
site is in /sites/default but I don't think that the folder
/sites/default has a special meaning anywhere in the opencms code).<br>
<br>
Best Regards<br>
Christian<br>
<br>
<blockquote
cite="mid:00bd01c985ee$dbe30a10$93a91e30$@launchbury@tssi.co.uk"
type="cite">
<pre wrap="">Here is a summary of all the problems I've been having with migrating from
6 to 7:
==========================================================================
Modified my hosts file so that when I go to our live website it points at
the new server.
Installed OpenCMS 7, imported site. All the site URLs are wrong (when you
go to <a class="moz-txt-link-abbreviated" 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 class="moz-txt-link-freetext" href="http://www.tssi.co.uk/products/biometric_security/fingerprint_reader_range">http://www.tssi.co.uk/products/biometric_security/fingerprint_reader_range</a>
.html they will be shown as
<a class="moz-txt-link-freetext" href="http://www.tssi.co.uk/sites/default/tssi/products/biometric_security/finge">http://www.tssi.co.uk/sites/default/tssi/products/biometric_security/finge</a>
rprint_reader_range.html - which of course doesn't work.
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.
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.
So - today I tried the other approach:
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.
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.
==========================================================================
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:
<default-uri>/sites/default/</default-uri>
<site server=<a class="moz-txt-link-rfc2396E" href="http://www.tssi.co.uk">"http://www.tssi.co.uk"</a> uri="/sites/default/tssi/"/>
I've edited the settings in opencms-importexport as follows:
<rfs-prefix>/export</rfs-prefix>
<vfs-prefix></vfs-prefix>
<userelativelinks>false</userelativelinks>
(The userelativelinks is as standard - I didn't change that at all).
These are changes to remove the /opencms/opencms from the site URL.
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 /?
Cheers,
Phil
Phil Launchbury
IT & Support Manager
------------------------------------------------------
TSSI Systems Ltd,
Rutland House, Hargreaves Road,
Groundwell Industrial Estate,
Swindon, Wiltshire, SN25 5AZ, U.K.
Tel: +44 (0) 1793 747736
Support Helpdesk
Tel: +44 (0) 8450 707 898
Email: <a class="moz-txt-link-abbreviated" href="mailto:support@tssi.co.uk">support@tssi.co.uk</a>
Website: <a class="moz-txt-link-abbreviated" href="http://www.tssi.co.uk">www.tssi.co.uk</a>
'Securing Business Around the World'
-------------------------------------------------------
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.
TSSI Systems Ltd is a company registered in England And Wales with company number 05433732.
The TSSI Systems Ltd Registered Office address is Rutland House, Hargreaves Rd, Groundwell Industrial Estate, Swindon, Wiltshire, SN25 5AZ.
</pre>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a></pre>
</blockquote>
<br>
</body>
</html>