URL.capturedWith error

Splash Forums PrettyFaces Users URL.capturedWith error

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Christian Kaltepoth 3 months, 1 week ago.

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

    iskenderoguz
    Participant

    I want to set permanent redirect to https url when http url was requested. I found this in forum link:

    return ConfigurationBuilder.begin()
    .addRule()
    .when(URL.captureIn(“url”).and(Path.matches(“/login”)).and(Scheme.matches(“http”)))
    .perform(Redirect.permanent(URL.capturedWith(“url”).toScheme(“https”)));

    but capturedWith gives error. how can I fix this ?

    #28346

    What do you mean with “gives error”?

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

You must be logged in to reply to this topic.

Comments are closed.