Re: Rewrite every *.jsf

Splash Forums PrettyFaces Users Rewrite every *.jsf Re: Rewrite every *.jsf

#20589

Ulisses Constantini
Participant

The regex ^(.*)(?!\.jsf)$ did’t work.

Any request is being rewritten.

I request: http://localhost:8080/myapp/teste

and the rewrite rule entered into a loop…

See the stack:

javax.servlet.ServletException: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/teste]>

root cause

com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/teste]>

root cause

javax.servlet.ServletException: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/teste.jsf]>

root cause

com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/teste.jsf]>

root cause

javax.servlet.ServletException: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/teste.jsf.jsf]>

root cause

com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/teste.jsf.jsf]>

root cause

javax.servlet.ServletException: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/teste.jsf.jsf.jsf]>

......

I try to change the regex without success.

Any suggestion?