Changing default affiliate URL

Currently the affiliate links are formatted as "http://www.xxxx.com?ref=x-47".

How would I change the default format to be a sub page of the site?

i would much rather have "http://www.xxxx.com/yyyy/?ref=x-47"