CNAME Lookup Tool
Web based tool to check if your CNAME record was set up correctly:
Simply enter your custom domain in the 'Domain Name' field and click 'CNAME Lookup'.
Alternatively, you can use Kloth's Dig Tool.
e-Marketing tips
Web based tool to check if your CNAME record was set up correctly:
Simply enter your custom domain in the 'Domain Name' field and click 'CNAME Lookup'.
Alternatively, you can use Kloth's Dig Tool.
Good post on how to dynamically allocate the virtual host directory based on the host name.
Scenario:
Code:
In your functions.php add:
function fromspecificsite(){ $ref = $_SERVER['HTTP_REFERER']; $SITES = array('foobar.com', 'google.com'); foreach ($SITE as $source) { if (strpos($ref,$source)!==false) return true; } return false; }
In your template add:
if (function_exists('fromspecificsite')) { if (fromspecificsite()) { echo "your ad code"; } }