<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Marc,</DIV>
<DIV> </DIV>
<DIV>Using "/" as exportname for "/sites/default/" didn't work for me.  Instead I used "/" as exportname for each of its subdirectories I wanted to export, and created an rfs-rules rule for each of those subdirectories.  That worked for me in 7.0.5.</DIV>
<DIV> </DIV>
<DIV>-- Dave Clark</DIV>
<DIV> </DIV>
<DIV><BR><BR>>>> Marc Johnen <opencms@johnen.biz> 4/9/2009 10:07 AM >>><BR><BR>Hello everyone,<BR><BR>I'd like to make a static export of two websites. The export won't contain<BR>any<BR>dynamic things and will be copied from my local computer to an apache<BR>directory<BR>on the server.<BR>Therefore the export should not contain any links with "/opencms/opencms",<BR>this is why<BR>I removed the "rfs-prefix". Now I wanted to remove the "/sites/mysite1.de/"<BR>from<BR>the links, so I set the exportname for the folde "/sites/mysite1.de/" to<BR>"/".<BR>When I export the site I get a 404 when the export of template-resources<BR>starts.<BR>Strangely it does work, when I set the exportname to anything other than<BR>"/", e.g.<BR>"/test", but then I have "test" in the links as well which is not what I<BR>want.<BR>Does anyone have a clue why this happens?<BR>Thanks and greetings<BR>Marc Johnen<BR><BR>error message:<BR>08 Apr 2009 16:38:19,152  INFO [fterPublishStaticExportHandler: 450] Request<BR>result for RFS file "/_contentlinkbox.conf" with url<BR>"http://127.0.0.1:8380/opencms/handle404/_contentlinkbox.conf" was<BR>STATUS=404<BR>08 Apr 2009 16:38:19,195 DEBUG [fterPublishStaticExportHandler: 384] Sending<BR>request for RFS file "/_global.conf" with url<BR>"http://127.0.0.1:8380/opencms/handle404/_global.conf"<BR>08 Apr 2009 16:38:19,196 DEBUG [fterPublishStaticExportHandler: 427] Request<BR>for RFS file "_global.conf" "If-Modified-Since" header set to "0"<BR>08 Apr 2009 16:38:19,230 DEBUG [pencms.site.CmsSiteManagerImpl: 686]<BR>Matching request [http://127.0.0.1:8380] to site server: * uri:<BR>/sites/mysite1.de title: /sites/mysite1.de/<BR>08 Apr 2009 16:38:19,272  INFO [fterPublishStaticExportHandler: 450] Request<BR>result for RFS file "/_global.conf" with url<BR>"http://127.0.0.1:8380/opencms/handle404/_global.conf" was STATUS=404<BR>08 Apr 2009 16:38:23,717 DEBUG [pencms.site.CmsSiteManagerImpl: 686]<BR>Matching request [http://mysite1:8380] to site server: * uri:<BR>/sites/mysite1.de title: /sites/mysite1.de/<BR><BR><BR>opencms-system.xml:<BR><BR><?xml version="1.0" encoding="UTF-8"?><BR><!DOCTYPE opencms SYSTEM<BR>"http://www.opencms.org/dtd/6.0/opencms-system.dtd"><BR><opencms><BR>  <system><BR>    <internationalization><BR>      <localehandler class="org.opencms.i18n.CmsDefaultLocaleHandler"/><BR>      <localesconfigured><BR>        <locale>en</locale><BR>        <locale>de</locale><BR>      </localesconfigured><BR>      <localesdefault><BR>        <locale>en</locale><BR>        <locale>de</locale><BR>      </localesdefault><BR>    </internationalization><BR>    <mail><BR>      <mailfrom>nobody@nowhere.com</mailfrom><BR>      <mailhost name="my.smtp.server" protocol="smtp" user="username"<BR>password="secure"/><BR>      <mailhost name="alternative.smtp.server"/><BR>      <mailhost name="another.alternative.smtp.server"/><BR>    </mail><BR>    <scheduler/><BR>    <versionhistory enabled="true" count="10" deleted="4"/><BR>    <resourceinit><BR>      <resourceinithandler<BR>class="org.opencms.file.history.CmsHistoryResourceHandler"/><BR>      <resourceinithandler<BR>class="org.opencms.main.CmsPermalinkResourceHandler"/><BR>      <resourceinithandler<BR>class="org.opencms.workplace.CmsWorkplaceLoginHandler"/><BR>    </resourceinit><BR>    <requesthandlers/><BR>    <passwordhandler class="org.opencms.security.CmsDefaultPasswordHandler"><BR>      <encoding>UTF-8</encoding><BR>      <digest-type>MD5</digest-type><BR>      false<BR>    </passwordhandler><BR>    <validationhandler<BR>class="org.opencms.security.CmsDefaultValidationHandler"/><BR>    <sites><BR>      <workplace-server><A href="http://localhost:8380">http://localhost:8380</A></workplace-server><BR>      <default-uri>/sites/mysite1.de/</default-uri><BR>      <site server="http://localhost:8381" uri="/sites/mysite1.de/"/><BR>      <site server="http://localhost:8382" uri="/sites/mysite2.de/"/><BR>    </sites><BR>    <runtimeproperties><BR>      false<BR>      /opencms/opencms/<BR>    </runtimeproperties><BR>    <runtimeclasses><BR>      <runtimeinfo class="org.opencms.db.CmsDbContextFactory"/><BR>    </runtimeclasses><BR>    <defaultusers><BR>      <user-admin>Admin</user-admin><BR>      <user-guest>Guest</user-guest><BR>      <user-export>Export</user-export><BR>      <group-administrators>Administrators</group-administrators><BR>      <group-projectmanagers>Projectmanagers</group-projectmanagers><BR>      <group-users>Users</group-users><BR>      <group-guests>Guests</group-guests><BR>    </defaultusers><BR>    <defaultcontentencoding>UTF-8</defaultcontentencoding><BR>    <memorymonitor class="org.opencms.monitor.CmsMemoryMonitor"><BR>      <maxusagepercent>90</maxusagepercent><BR>      <log-interval>600</log-interval><BR>      <email-interval>43200</email-interval><BR>      <warning-interval>43200</warning-interval><BR>    </memorymonitor><BR>    <flexcache><BR>      <cache-enabled>true</cache-enabled><BR>      <cache-offline>false</cache-offline><BR>      <maxcachebytes>8000000</maxcachebytes><BR>      <avgcachebytes>6000000</avgcachebytes><BR>      <maxentrybytes>400000</maxentrybytes><BR>      <maxkeys>2000</maxkeys><BR>    </flexcache><BR>    <http-authentication><BR>      <browser-based>true</browser-based><BR>    </http-authentication><BR>    <resultcache><BR>      <keygenerator>org.opencms.db.CmsCacheKey</keygenerator><BR>      <size-users>64</size-users><BR>      <size-groups>64</size-groups><BR>      <size-orgunits>64</size-orgunits><BR>      <size-usergroups>256</size-usergroups><BR>      <size-projects>32</size-projects><BR>      <size-projectresources>64</size-projectresources><BR>      <size-resources>8192</size-resources><BR>      <size-resourcelists>256</size-resourcelists><BR>      <size-properties>1024</size-properties><BR>      <size-propertylists>1024</size-propertylists><BR>      <size-accesscontrollists>1024</size-accesscontrollists><BR>      <size-permissions>1024</size-permissions><BR>    </resultcache><BR>    <content-notification><BR>      <notification-time>365</notification-time><BR>      <notification-project>Offline</notification-project><BR>    </content-notification><BR>    <authorizationhandler<BR>class="org.opencms.security.CmsDefaultAuthorizationHandler"/><BR>    <publishmanager><BR>      <history-size>100</history-size><BR>      <queue-persistance>true</queue-persistance><BR>      <queue-shutdowntime>1</queue-shutdowntime><BR>    </publishmanager><BR>    <session-storageprovider<BR>class="org.opencms.main.CmsDefaultSessionStorageProvider"/><BR>    <permissionhandler<BR>class="org.opencms.security.CmsDefaultPermissionHandler"/><BR>    <servletcontainer-settings mode="manual"><BR>      <prevent-response-flush>false</prevent-response-flush><BR>      <release-tags-after-end>true</release-tags-after-end><BR>    </servletcontainer-settings><BR>  </system><BR></opencms><BR><BR><BR>opencms-importexport.xml:<BR><BR><?xml version="1.0" encoding="UTF-8"?><BR><!DOCTYPE opencms SYSTEM<BR>"http://www.opencms.org/dtd/6.0/opencms-importexport.dtd"><BR><opencms><BR><importexport><BR><importexporthandlers><BR><importexporthandler<BR>class="org.opencms.importexport.CmsVfsImportExportHandler"/><BR><importexporthandler<BR>class="org.opencms.module.CmsModuleImportExportHandler"/><BR></importexporthandlers><BR><import><BR><overwrite>true</overwrite><BR><convert>true</convert><BR><importversions><BR><importversion class="org.opencms.importexport.CmsImportVersion2"/><BR><importversion class="org.opencms.importexport.CmsImportVersion3"/><BR><importversion class="org.opencms.importexport.CmsImportVersion4"/><BR><importversion class="org.opencms.importexport.CmsImportVersion5"/><BR><importversion class="org.opencms.importexport.CmsImportVersion6"/><BR><importversion class="org.opencms.importexport.CmsImportVersion7"/><BR></importversions><BR><immutables><BR><resource uri="/system/"/><BR><resource uri="/system/categories/"/><BR><resource uri="/system/galleries/"/><BR><resource uri="/system/galleries/download/"/><BR><resource uri="/system/galleries/externallinks/"/><BR><resource uri="/system/galleries/htmlgalleries/"/><BR><resource uri="/system/galleries/pics/"/><BR><resource uri="/system/login/"/><BR><resource uri="/system/modules/"/><BR><resource uri="/system/shared/"/><BR><resource uri="/system/workplace/"/><BR><resource uri="/system/workplace/admin/"/><BR><resource uri="/system/workplace/help/"/><BR><resource uri="/system/workplace/locales/"/><BR><resource uri="/system/workplace/resources/"/><BR><resource uri="/system/workplace/restypes/"/><BR><resource uri="/system/workplace/scripts/"/><BR><resource uri="/system/workplace/templates/"/><BR><resource uri="/system/workplace/views/"/><BR><resource uri="/sites/"/><BR></immutables><BR><principaltranslations/><BR><ignoredproperties/><BR></import><BR></importexport><BR>        <staticexport enabled="true"><BR>       <BR><!--<staticexporthandler>org.opencms.staticexport.CmsOnDemandStaticExportHandler</staticexporthandler>--><BR>                 <BR><!--<staticexporthandler>org.opencms.staticexport.CmsOnDemandHtmlSubtreeHandler</staticexporthandler>--><BR>                 <BR><staticexporthandler>org.opencms.staticexport.CmsAfterPublishStaticExportHandler</staticexporthandler><BR>                <exportpath>export</exportpath><BR>                <defaultpropertyvalue>true</defaultpropertyvalue><BR>                <!-- wird nur genommen, wenn defaultpropertyvalue=true --><BR>                <defaultsuffixes><BR>                        <suffix key=".jpg"/><BR>                        <suffix key=".gif"/><BR>                        <suffix key=".png"/><BR>                        <suffix key=".doc"/><BR>                        <suffix key=".xls"/><BR>                        <suffix key=".ppt"/><BR>                        <suffix key=".pdf"/><BR>                        <suffix key=".txt"/><BR>                        <suffix key=".css"/><BR>                        <suffix key=".zip"/><BR>                        <suffix key=".swf"/><BR>                </defaultsuffixes><BR>                <rendersettings><BR>                        <rfs-prefix></rfs-prefix><BR>                       <BR><vfs-prefix>${CONTEXT_NAME}${SERVLET_NAME}</vfs-prefix><BR>                        <userelativelinks>false</userelativelinks><BR>                       <BR><exporturl><A href="http://localhost:8380$">http://localhost:8380$</A>{CONTEXT_NAME}/handle404</exporturl><BR>                        <plainoptimization>true</plainoptimization><BR>                        <testresource uri="/system/shared/page.dtd"/><BR>                        <resourcestorender><BR>                                <regex>/sites/mysite1.de/.*</regex><BR>                                <regex>/sites/mysite2.de.de/.*</regex><BR>                               <BR><regex>/system/modules/de.mysite1.frontend/resources.*</regex><BR>                               <BR><regex>/system/modules/de.mysite2.frontend/resources.*</regex><BR>                                <export-rules><BR>                                        <export-rule><BR>                                                <name>mysite1.de</name><BR>                                                <description>export rules<BR>for mysite1.de</description><BR>                                                <modified-resources><BR>                                                       <BR><regex>/sites/mysite1\.de/.*</regex><BR>                                                       <BR><regex>/system/modules/de.mysite1.frontend/.*</regex><BR>                                                </modified-resources><BR>                                                <export-resources><BR>                                                       <BR><uri>/sites/mysite1.de/</uri><BR>                                                </export-resources><BR>                                        </export-rule><BR>                                        <export-rule><BR>                                                <name>sfp.de</name><BR>                                                <description>export rules<BR>for mysite2.de</description><BR>                                                <modified-resources><BR>                                                       <BR><regex>/sites/mysite2\.de/.*</regex><BR>                                                       <BR><regex>/system/modules/de.mysite2.frontend/.*</regex><BR>                                                </modified-resources><BR>                                                <export-resources><BR>                                                       <BR><uri>/sites/mysite2.de/</uri><BR>                                                </export-resources><BR>                                        </export-rule><BR>                                </export-rules><BR>                        </resourcestorender><BR>                        <rfs-rules><BR>                                <rfs-rule><BR>                                        <name>mysite1.de</name><BR>                                        <description>export rules for<BR>mysite1.de</description><BR>                                       <BR><source>/sites/mysite1\.de/.*</source><BR>                                        <rfs-prefix></rfs-prefix><BR>                                       <BR><exportpath>/srv/tomcat/opencms7/www/mysite1.de</exportpath><BR>                                       <BR><userelativelinks>false</userelativelinks><BR>                                        <related-system-res><BR>                                               <BR><regex>/system/modules/de.mysite1.frontend/resources/.*</regex><BR>                                        </related-system-res><BR>                                </rfs-rule><BR>                                <rfs-rule><BR>                                        <name>sfp.de</name><BR>                                        <description>export rules for<BR>mysite2.de</description><BR>                                       <BR><source>/sites/mysite2\.de/.*</source><BR>                                        <rfs-prefix>/</rfs-prefix><BR>                                       <BR><exportpath>/srv/tomcat/opencms7/www/mysite2.de.de</exportpath><BR>                                       <BR><userelativelinks>true</userelativelinks><BR>                                        <related-system-res><BR>                                               <BR><regex>/system/modules/de.mysite2.frontend/resources/.*</regex><BR>                                        </related-system-res><BR>                                </rfs-rule><BR>                        </rfs-rules><BR>                </rendersettings><BR>        </staticexport><BR><usercsvexport><BR><separator>;</separator><BR><columns><BR><column>description</column><BR><column>lastname</column><BR><column>firstname</column><BR><column>email</column><BR><column>address</column><BR><column>zipcode</column><BR><column>city</column><BR><column>country</column><BR><column>USERPREFERENCES_workplace-startupsettingssite</column><BR><column>USERPREFERENCES_workplace-startupsettingslocale</column><BR><column>password</column><BR></columns><BR></usercsvexport><BR><repositories><BR><repository name="standard" class="org.opencms.repository.CmsRepository"><BR><params><BR>org.opencms.file.wrapper.CmsResourceExtensionWrapperJsp<BR>org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlContent<BR>org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlPage<BR>org.opencms.file.wrapper.CmsResourceWrapperSystemFolder<BR>org.opencms.file.wrapper.CmsResourceWrapperPropertyFile<BR></params><BR><filter type="include"><BR><regex>/</regex><BR><regex>/__properties/.*</regex><BR><regex>/sites/.*</regex><BR><regex>/system/</regex><BR><regex>/system/__properties/.*</regex><BR><regex>/system/galleries/.*</regex><BR><regex>/system/modules/.*</regex><BR><regex>/system/workplace/.*</regex><BR></filter><BR></repository><BR><repository name="extended" class="org.opencms.repository.CmsRepository"><BR><params><BR>org.opencms.file.wrapper.CmsResourceExtensionWrapperJsp<BR>org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlContent<BR>org.opencms.file.wrapper.CmsResourceWrapperXmlPage<BR>org.opencms.file.wrapper.CmsResourceWrapperSystemFolder<BR>org.opencms.file.wrapper.CmsResourceWrapperPropertyFile<BR></params><BR><filter type="include"><BR><regex>/</regex><BR><regex>/__properties/.*</regex><BR><regex>/sites/.*</regex><BR><regex>/system/</regex><BR><regex>/system/__properties/.*</regex><BR><regex>/system/galleries/.*</regex><BR><regex>/system/modules/</regex><BR><regex>/system/modules/[^/]*/</regex><BR><regex>/system/modules/[^/]*/__properties/.*</regex><BR><regex>/system/modules/[^/]*/resources/.*</regex><BR></filter><BR></repository><BR></repositories><BR></opencms><BR>-- <BR>View this message in context: <A href="http://www.nabble.com/404">http://www.nabble.com/404</A>-on-export-when-exportname-is-%22-%22-tp22974081p22974081.html<BR>Sent from the OpenCMS - Dev mailing list archive at Nabble.com.<BR><BR><BR></DIV></BODY></HTML>