Reply To: Redirect xhtml to html

Splash Forums Rewrite Users Redirect xhtml to html Reply To: Redirect xhtml to html

#25354

defuchs
Participant

Also with the slash in the beginning it does not work:
config.addRule().when( Direction.isInbound().and( Path.matches( “/{whatever}.xhtml” ) ) ).perform( Redirect.temporary( “/{whatever}.html” ))

What we need is to hide the .xhtml files from the user instead show html to do so and to not always do forwards when user bookmarks => redirects prevent them from adding bookmarks in the first place, so we need/want to do redirects.

what i want is to redirect the followings:

/aaa/bbb.xhtml to /aaa/bbb.html
/aaa.xhtml to /aaa.xhtml

no matter whatever is in front of xhtml just redirect it to html

hope i could explain a bit clearer…