Re: rewrite trailing slash and 3.3.0 snapshot

Splash Forums PrettyFaces Users rewrite trailing slash and 3.3.0 snapshot Re: rewrite trailing slash and 3.3.0 snapshot

#20974

RedShadow
Participant

<?xml version=”1.0″ encoding=”UTF-8″?>

<pretty-config xmlns=”http://ocpsoft.com/prettyfaces/3.2.0″

xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”

xsi:schemaLocation=”http://ocpsoft.com/prettyfaces/3.2.0

http://ocpsoft.com/xml/ns/prettyfaces/ocpsoft-pretty-faces-3.2.0.xsd“>

<rewrite match=”^((?!.*.w*).)*$” trailingSlash=”append” toCase=”lowercase” redirect=”chain”/>

<rewrite match=”^/admin/.*.xhtml$” substitute=”/admin/pageNotFound.xhtml” redirect=”chain”/>

<url-mapping id=”cmsStart”>

<pattern value=”/admin/” />

<view-id>#{authentificationBean.getViewPath}</view-id>

</url-mapping>

<!– Index –>

<url-mapping id=”moduleIndex1″>

<pattern value=”/admin/#{indexModuleBean.moduleName}/” />

<view-id>#{indexModuleBean.getViewPath}</view-id>

<action>#{indexModuleBean.standardEntriesPerPage}</action>

<action>#{indexModuleBean.standardPage}</action>

</url-mapping>

<url-mapping id=”moduleIndex2″>

<pattern value=”/admin/#{indexModuleBean.moduleName}/index/” />

<view-id>#{indexModuleBean.getViewPath}</view-id>

<action>#{indexModuleBean.standardEntriesPerPage}</action>

<action>#{indexModuleBean.standardPage}</action>

</url-mapping>

<url-mapping id=”moduleIndex3″>

<pattern value=”/admin/#{indexModuleBean.moduleName}/index/#{indexModuleBean.entriesPerPage}/” />

<view-id>#{indexModuleBean.getViewPath}</view-id>

<action>#{indexModuleBean.standardPage}</action>

</url-mapping>

<url-mapping id=”moduleIndex4″>

<pattern value=”/admin/#{indexModuleBean.moduleName}/index/#{indexModuleBean.entriesPerPage}/#{indexModuleBean.page}/” />

<view-id>#{indexModuleBean.getViewPath}</view-id>

</url-mapping>

<!– Edit, Delete, Detail, Add –>

<url-mapping id=”moduleEdit”>

<pattern value=”/admin/#{editModuleBean.moduleName}/edit/#{editModuleBean.entryId}/” />

<view-id>#{editModuleBean.getViewPath}</view-id>

</url-mapping>

<url-mapping id=”moduleDelete”>

<pattern value=”/admin/#{deleteModuleBean.moduleName}/delete/#{deleteModuleBean.entryId}/” />

<view-id>#{deleteModuleBean.getViewPath}</view-id>

</url-mapping>

<url-mapping id=”moduleDetail”>

<pattern value=”/admin/#{detailModuleBean.moduleName}/edit/#{detailModuleBean.entryId}/” />

<view-id>#{detailModuleBean.getViewPath}</view-id>

</url-mapping>

<url-mapping id=”moduleAdd”>

<pattern value=”/admin/#{addModuleBean.moduleName}/add/” />

<view-id>#{addModuleBean.getViewPath}</view-id>

</url-mapping>

</pretty-config>