<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Am 27.02.2015 um 13:10 schrieb Tobias
Karrer:<br>
</div>
<blockquote cite="mid:54F05EB4.2000405@gmail.com" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div class="moz-cite-prefix">Hi Christoph,<br>
<br>
simply switching to vfs and copy your index.html to "index.htm"
checking "Create a sibling of the resource" don't work?<br>
Or create a htmlredirect from index.htm -> index.html?<br>
</div>
</blockquote>
<br>
Thanks Tobias. My memory. I could have sworn I used the sibling
mechanism already in the 9.5.0 workplace but and in fact, when I saw
the copy options the scales fell from my eyes. ;)<br>
<br>
SEO (Search Engine Optimization). OK. Should I do the permanent
redirect in the apache host configuration ? Or is there a way to do
this in a jsp (bean?)<br>
<br>
<br>
<blockquote cite="mid:54F05EB4.2000405@gmail.com" type="cite">
<div class="moz-cite-prefix"> <br>
Best,<br>
Tobias<br>
<br>
PS: Keep in mind that <small><font face="Courier New, Courier,
monospace">response.sendRedirect()</font></small> does a
temporary redirect. So in case SEO is important, better use a
permanent redirect.<br>
<br>
Am 27.02.2015 um 11:53 schrieb Christoph Kukulies:<br>
</div>
<blockquote cite="mid:54F05AAA.1040806@physik.rwth-aachen.de"
type="cite">
<div class="moz-signature">In my new, OpenCms 9.5.0 based site,
it happened that I had to change the central index.htm, which
had a template attached to, containing the following code:<br>
<br>
<small><font face="Courier New, Courier, monospace"><%@page
import="org.opencms.jsp.*,org.opencms.file.*,java.util.*"
%><br>
<%<br>
CmsJspActionElement cms = new
CmsJspActionElement(pageContext, request, response);<br>
<br>
String serverName = request.getServerName();<br>
<br>
if (serverName.indexOf(".com") != -1) {<br>
response.sendRedirect(cms.link("/en/"));<br>
} else {<br>
response.sendRedirect(cms.link("/de/"));<br>
}<br>
%><br>
</font></small><br>
to take into account that our site had a .de and a .com
ending. Now the index.html is actually<br>
of type "jsp", but named index.html.<br>
<br>
Unfortunately my colleagues in the office had hard wired links
on their desktops<br>
containing the URL <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://oursite.de/index.htm">http://oursite.de/index.htm</a><br>
<br>
So what can I do now? I'm missing the "Create sibling" in the
Add wizard under 9.5.0. Am I just blind?<br>
<br>
-- <br>
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de </div>
<br>
</blockquote>
</blockquote>
<br>
<div class="moz-signature">-- <br>
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
</div>
</body>
</html>