Dynamic subdomains allow you to set-up affiliate links that use the username as the subdomain for your affiliate link.
For example: http://joesmith.yourdomain.com where joesmith is the affiliate's username.
Dynamic Subdomain Affiliate Link Requirements:
Access to your DNS records
You will need to be able to edit your DNS or name server records to enable dynamic subdomains.
Access to your Apache Web Server Configuration File
You will need to be able to edit your Apache's httpd.conf file to enable dynamic subdomains.
Steps to Enable Dynamic Subdomain Affiliate Links:
Your home page must be in php, such as index.php
Edit Your Name Server / DNS Records - You will need to enter a wildcard subdomain entry for your DNS records. If you use BIND as your name server, it would go as the last line on your DNS record as follows:
@ IN SOA ns1.domain.com. admin.domain.com. ( 4 ; serial 8H ; refresh 2H ; retry 2W ; expire 1D ; default_ttl ) IN A 192.168.1.233 IN NS ns1.jrox.com. IN NS ns2.jrox.com. www IN A 192.168.1.233 * IN A 192.168.1.233
Edit Your Apache httpd.conf file - You will need to edit your httpd.conf file and add a ServerAlias entry near the bottom of your Virtual Host record as follows:
Enable the dynamic subdomain links in Settings > Global Configuration > Marketing > Affiliate Marketing > Affiliate Link Type and set it to dynamic. You can also specify restricted subdomains in the Restricted Subdomains field so that users will not create affiliate usernames with them.