Affiliate link cloaking

mobilegambler

New Member
Joined
Oct 2, 2015
Messages
4
Reaction score
0
what is the best way for SEO to affiliate link cloaking?
i use wordpress on my new site, i know this can be done by using plugins or editing the htaccess file.
which is the most relevant way?
 

3joker

Affiliate Guard Dog Member
Joined
Mar 1, 2014
Messages
233
Reaction score
51
I just use .htaccess. It's really easy and you don't have to rely on any plugins. I don't see any disadvantages at all.

Example on what to put in your .htaccess file:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
Options -Indexes

redirect 301 /go/examplecasino http://example.affiliate/link.com

This will also redirect domain.com to www.domain.com.
 

mobilegambler

New Member
Joined
Oct 2, 2015
Messages
4
Reaction score
0
this is what i need,
pretty link allow 302 and 307 redirection but this way, editing .htaccess i can redirect with 301 code which is more liked by Google. right?
thanks
 

TravG

New Member
Joined
Sep 19, 2015
Messages
27
Reaction score
3
Yes, I would definitely use your htaccess file to redirect links. I have used many methods (including plugins) but changed them all to this at least a year ago and is definitely the best route.
 
Top