Cloaking long address

shezzan

Newbie
Joined
May 18, 2012
Messages
16
Reaction score
0
Dear Blackhat World,
I would like to ask you an advice.
I just singned a new affiliation with a famous hotel booking website as i have a great domain with plenty of traffic.
I am redirecting my domain to their affiliation link using index.php 301 redirect

therefore when someone type the website address the address becomes very long and clearly shows the affiliate link.

is there any way to transform this redirected url in something nicer, like mysiteaddress / hotels ???

I tried many ways but i can't achieve anything.

Any help, with detailed instrutions is highly appreciated, maybe also other forum member are interested in knowing more..

Thanks a bunch in advance.

Shezzan
 
Code:
<?php

$link = 'http://www.yourlongshittyaffiliatelinkgoeshere.com/';

header("Location: $link", true, 301);

?>

Save the above as mysiteaddress.com/hotels/index.php.

Then you can link to mysiteaddress.com/hotels and traffic will be redirected to your affiliate url.

If you want to go more advanced, look at the PrettyLink plugin for Wordpress or CPA Redirector 2.
 
Dear DecoderDave and Autumn thanks a lot.
I created the php files.
I have placed it in the /hotels/ folder.
In the root folder i create an httaccess like this

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^$ /hotels/ [R=301]
</IfModule>

but when redirected still compares the shitty long affiliate url and not webadress / hotels

What can i do...
Thanks..
 
just get the domain that you want and or sounds good and then just point your domain to that affiliate link address
 
I thought you needed to iFrame for this or something? I want to know how to do this too, I looked into it a lot and people said you needed to put in an iFrame code and spoof the referrer or something?
 
All you have to do is get the address that you wish and point out your link to that link address.
 
Back
Top