<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<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>
<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">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<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>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>