Solprovider Lenya Kongregate Registration for Free Flash Games and Chat with solprovider

Blocking default search

It is important to block the default search when implementing ProtectedAreas to prevent visitors from typing the URL of the default search (or, if this publication was in production, using a bookmark to the old search) and seeing links to protected documents.

1. Create new file:
build\lenya\webapp\lenya\pubs\{pub}\lenya\lucene.xmap
Add content:
<?xml version="1.0" encoding="UTF-8"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:pipelines>
<map:pipeline>
<map:match pattern="*/search-*/lucene.xml">
<map:redirect-to uri="/{page-envelope:publication-id}/live/index.html?lenya.usecase=search"/>
</map:match>
<map:match pattern="*/search-*/lucene*">
<map:redirect-to uri="/{page-envelope:publication-id}/live/index.html?lenya.usecase=search"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>


<< WindowsTesting >>

Contact Solprovider
Paul Ercolino