Today I encountered a problem while setting up my facebook campaign. I was direct linking. The URL being displayed on the Ad was of my CPA network which was unacceptable. I first though of a redirect but this would not work well because of the Sub Id’s being passed.

I put my coding hat on and programmed a simple redirect on PHP. It serves as a relay during redirect for the sub id. The code is below:

// Fetching Sub Ids
// Creating new URL . Take the static part of your tracking URL.
// Redirecting to new URL
header ("Location: $url");
Save this code into a '.php' file and name it 'Index.php'. Put this file in the home directory or the sub directory you want to work with.
Your new URL will look like:
This will surely make your life a bit easier trying to mask a URL and pass Subid at the same time.