Re: how to map an url like www.example.com?foo=bar

Splash Forums PrettyFaces Users how to map an url like www.example.com?foo=bar Re: how to map an url like www.example.com?foo=bar

#22844

firedancer
Participant

Nevermind, I fixed it.

In case someone else wonders how:

I created pretty-config.xml with the following contents:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<pretty-config xmlns="http://ocpsoft.com/prettyfaces/3.2.0"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://ocpsoft.com/prettyfaces/3.2.0

http://ocpsoft.com/xml/ns/prettyfaces/ocpsoft-pretty-faces-3.2.0.xsd">

<rewrite match="/oauth2callback?state=(w+)&code=(w+)" url="http://localhost:8080/mysite/oauth2callback/$1/$2"/>

</pretty-config>