Splash › Forums › PrettyFaces Users › Redirect to external URL › Re: Redirect to external URL
first of all thanks for your replay.
I tried to use <rewirte> to solve my problem but it doesn’t work.
I’ve create a link in my jsf page.
In my pretty-config.xml i’ve created following rewrite-rule:
<rewrite match=”/foo/bar” url=”http://www.google.de” redirect=”301″/>
PrettyFaces rewrites http://localhost:8080/prettytest/foo/bar to http://localhost:8080/prettytest/http://www.google.de. So now i get 404 Error by using the link. Of course because the link was not rewrite to http://www.google.de.
Where is my mistake ?
If you find our tools useful, please consider making a donation to help us stay online and building software!