I want to build a site where any link to my domain such as domain.com/fefeg or domain.com/rfggtg the (/xxxxx) part will be randomly generated, always redirects to another domain.
Basically, any link with my domain + /xxxxx or even /xxx/xxx, will forward to another domain of my choosing such as otherdomain.com/x/index.php or whatever.
Godaddy has a forwarding option but doesnt forward if there is more to the link other than the plain domain name
How can i make this on my plain server? Is there a simple one file script to be uploaded to server that does this?