Re: Redirect to external URL

Splash Forums PrettyFaces Users Redirect to external URL Re: Redirect to external URL

#20724

Moddus
Participant

Hi,

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.

For example:

http://localhost:8080/prettytest/foo/bar

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 ?

Thanks