Setting up www.domain.com/username affiliate links

To set up www.domain.com/username affiliate links, follow these steps:

  1. Open up /system/application/config/routes.php
  2. for the following line, change it from:

    define('AFFILIATE_ROUTE', 'affiliates');
    $route[AFFILIATE_ROUTE.'/:any'] = "refer/id/$1";

    to:

    define('AFFILIATE_ROUTE', '');
    $route[AFFILIATE_ROUTE.'/:any'] = "refer/id/$1";



  3. Save the file.  
  4. Open up the /system/application/config/config.php file
  5. Make sure that the following config option is set to false:

    $config['content_enable_se_title_urls'] = false;

  6. If it is not, change it to false, then save it.
  7. your links will now look like:

    http://www.domain.com/username

 

LATEST NEWS

SiteLock
LiveZilla Live Chat Software