.htaccess assistance needed.

Good Day,

 

I am using the Affiliate Referal Module by AntonLV

http://www.boonex.com/m/forced-matrix-for-affiliate-referrals-system

 

This module creates the following type of link for each member.

 

http://www.hellopages.com/?refaqb=1

 

I am attempting to redirect our homepage to:  http://www.hellopages.com

to http://www.hellopages.com/?refaqb=1

My entry looks like this:

 

RewriteRule ^.$ http://www.hellopages.com/?refaqb=1 and the rule fails.

RedirectMatch ^.$ http://www.hellopages.com/?refaqb=1 creates a loop.

Any ideas?

 

Thanks in advance,

Thomas

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Quote · 30 Nov 2011

Might be easier to just redirect the user in the index.php file.

 

Try this after all the require_onces: 

// Redirect

if(!bx_get('refaqb'))

Redirect(BX_DOL_URL_ROOT, array('refaqb'=>'1'), 'get', 'Redirect Title');

sup
Quote · 30 Nov 2011

Works like a charm!

Thank you,

Thomas

Quote · 30 Nov 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.