Splash › Forums › PrettyFaces Users › Trailing Slashes uses
Tagged: rewrite trailingSlash
This topic contains 1 reply, has 1 voice, and was last updated by Beto 10 years ago.
I’m new in this forum and with prettyfaces, but its so easy to use that i didn’t need any support.. until now haha..
So, reading about trailing slashes uses on rewrite rule, at docs, i don’t figured out how to configure pretty-config.xml to accept an URL without “/” to rewriting using the trailing slashes.
Example: i have the URL “domain.com/home” and pretty-config like this:
<pattern value=”/home” />
<view-id value=”/faces/home.jsf” />
This works fine, but if i use the URL “domain.com/home/” it shows a 404 error!
I try to use the rewrite rule:
<rewrite trailingSlash=”append” redirect=”chain”/>
But don’t work.
Anybody helps? Thanks in advance!
The forum ‘PrettyFaces Users’ is closed to new topics and replies.
Comments are closed.
If you find our tools useful, please consider making a donation to help us stay online and building software!