| | #1 |
| Jedi Master War Room Member Join Date: 2010 Location: City of Smiles
Posts: 4,752
Thanks: 795
Thanked 1,158 Times in 579 Posts
Blog Entries: 1 |
I noticed most websites trying to hide affiliate links uses redirection URL like this one: "domain.net/go/Free_Gift_Cards/4/" In doing this, should I create a "go" folder and create blank files and then redirect each individual files to specific links? I don't really understand how to do this with less work. Thank you very much for your suggestions.. |
![]() Moderator's Note: You're only allowed to put your own products or sites in your signature. Signature edited. | |
| |
| | #2 |
| Warrior Member Join Date: 2012
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
if you using php, you can try this code: if ($_GET['short_url'] == 'your_short_url') { header("location: $url_destination"); } you can save this code in file go.php and you can access this by yourdomain.com/go.php?short_url=your_short_url if you want to yourdomain.com/go/your_shot_url you must create the .htaccess file to configure it. |
| |
| | #3 |
| Jedi Master War Room Member Join Date: 2010 Location: City of Smiles
Posts: 4,752
Thanks: 795
Thanked 1,158 Times in 579 Posts
Blog Entries: 1 |
I tried the first suggestion but it looks like its not working...
|
![]() Moderator's Note: You're only allowed to put your own products or sites in your signature. Signature edited. | |
| |
| | #4 |
| Advanced Warrior War Room Member Join Date: 2003 Location: United Kingdom.
Posts: 737
Thanks: 107
Thanked 208 Times in 159 Posts
|
Hi Aidie, There is an excellent tutorial on how to do this on this web site. PHP Affiliate Jump Script - How to create an Affiliate Link jump script in PHP I've used it in the past and it works great. Don't forget to download the source code from that page. |
| | |
| |
| The Following User Says Thank You to Janet Sawyer For This Useful Post: |
| | #5 | |
| Jedi Master War Room Member Join Date: 2010 Location: City of Smiles
Posts: 4,752
Thanks: 795
Thanked 1,158 Times in 579 Posts
Blog Entries: 1 |
| |
![]() Moderator's Note: You're only allowed to put your own products or sites in your signature. Signature edited. | ||
| |
| | #6 |
| Warrior Member Join Date: 2011
Posts: 20
Thanks: 1
Thanked 3 Times in 3 Posts
|
Php is simpler than doing it with .htaccess, but with htaccess you can hide the actual url with a "rewrite" command. Ciao! |
| |
| | #8 | |
| Premium SEO Company War Room Member Join Date: 2009
Posts: 417
Thanks: 51
Thanked 41 Times in 30 Posts
|
| |
| | SEO Consultant | Shane Hunter | | ||
| |
| | #9 |
| Active Warrior Join Date: 2010
Posts: 41
Thanks: 0
Thanked 3 Times in 3 Posts
|
It depends what programming language you are using , if you are using php then you can use header("Location:url")
|
| |
| | #10 |
| Boat Charter Sydney Join Date: 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
You need to instruct the server you are hosting your website on to redirect the traffic seamlessly. To do this you need to first establish what type of server your website is hosted on.
|
| |
| | #11 |
| HyperActive Warrior Join Date: 2011 Location: USA
Posts: 278
Thanks: 0
Thanked 18 Times in 18 Posts
| ColdFusion Redirect <.cfheader statuscode="301" statustext="Moved permanently"> <.cfheader name="Location" value="http://www.new-url.com"> PHP Redirect <? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.new-url.com" ); ?> ASP Redirect <%@ Language=VBScript %> <% Response.Status="301 Moved Permanently" Response.AddHeader "Location","http://www.new-url.com/" %> ASP .NET Redirect <script runat="server"> private void Page_Load(object sender, System.EventArgs e) { Response.Status = "301 Moved Permanently"; Response.AddHeader("Location","http://www.new-url.com"); } </script> JSP (Java) Redirect <% response.setStatus(301); response.setHeader( "Location", "http://www.new-url.com/" ); response.setHeader( "Connection", "close" ); %> CGI PERL Redirect $q = new CGI; print $q->redirect("http://www.new-url.com/"); Ruby on Rails Redirect def old_action headers["Status"] = "301 Moved Permanently" redirect_to "http://www.new-url.com/" end |
| | |
| |
| | #12 |
| Warrior Member Join Date: 2012
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
You can create a method for flexible usage and then call it in a page from where you like to be redirected from to your selected page for example: function movePage($num,$url){ static $http = array ( 100 => "HTTP/1.1 100 Continue", 303 => "HTTP/1.1 303 See Other", 304 => "HTTP/1.1 304 Not Modified", 305 => "HTTP/1.1 305 Use Proxy", 504 => "HTTP/1.1 504 Gateway Time-out" ); header($http[$num]); header ("Location: $url"); } movePage(303,"yoururl.com"); |
| |
| | #13 |
| Warrior Member Join Date: 2012
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
The URL can be anything such as: United Kingdom TV Channels | TV |
| |
| | #14 |
| Warrior Member Join Date: 2012
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
|
This is really good information thank you for share with us.
|
|
WebIntel provides its services to develop a unique web sites and perth web design globally.
| |
| |
| | #15 |
| Banned Join Date: 2012
Posts: 1,529
Thanks: 39
Thanked 213 Times in 172 Posts
|
This looks good! We've been also trying to find some instructions on how to do the same. Never expected we'll find an answer over here. Thanks much! -Andrew Customer Service Representative Content Writing 360° - Writing Services |
| |
| | #16 |
| Active Warrior Join Date: 2012
Posts: 36
Thanks: 1
Thanked 0 Times in 0 Posts
|
using htaccess its possible so try it
|
| | |
| |
| | #17 |
| Active Warrior War Room Member Join Date: 2012
Posts: 50
Thanks: 0
Thanked 1 Time in 1 Post
|
<meta http-equiv="refresh" content="0;URL='http://newsite.com/'"> Using a client side redirect. The '0' denotes that it waits 0 seconds before redirecting. |
| |
| | #18 |
| Warrior Member Join Date: 2012
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
|
if struggling, try running on wordpress, they have plugins to do this automatically
|
| |
| | #19 |
| Bot Maker / IM Newbie Join Date: 2012
Posts: 24
Thanks: 0
Thanked 2 Times in 2 Posts
|
Easiest thing to do (I have done this and its up and going within minutes) is grab a copy of YOURLS (yourls.org). It is a bit like bit.ly - you can use keywords as the redirect name and then see stats on the link. Its a good one to look at to solve what you are looking at. |
| Need something automated? Take a look at The Bot Shop | |
| |
| | #20 |
| Warrior Member Join Date: 2012
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
SEO Ultimate plugin for WordPress if you run a WordPress blog! SEO by Yoast might also help |
| |
| | #21 |
| HyperActive Warrior War Room Member Join Date: 2011 Location: Pakistan
Posts: 163
Thanks: 14
Thanked 56 Times in 46 Posts
|
you can use redirect plugin or Gopages wordpress plugin for this purpose if you are having wordpress plugin. In other case, you can use header redirect for this purpose..
|
|
Check out for more strategies on my website www.marketingwithidrees.com | |
| |
| | #22 |
| HyperActive Warrior Join Date: 2011
Posts: 133
Thanks: 1
Thanked 7 Times in 6 Posts
|
There is a wordpress plugin for that purpose. Are you using wp?
|
| |
|
| Bookmarks |
| Tags |
| redirect, url |
| |