Trailing Slashes uses

Splash Forums PrettyFaces Users Trailing Slashes uses

This topic contains 1 reply, has 1 voice, and was last updated by  Beto 5 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18136

    Beto
    Participant

    Hi everybody!

    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:

    <url-mapping id=”home”>

    <pattern value=”/home” />

    <view-id value=”/faces/home.jsf” />

    </url-mapping>

    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!

    #22000

    Beto
    Participant
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Comments are closed.