Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 19th Jun 2012, 08:15 PM   #1
Jedi Master
War Room Member
 
Adie's Avatar
 
Join Date: 2010
Location: City of Smiles
Posts: 4,752
Thanks: 795
Thanked 1,158 Times in 579 Posts
Blog Entries: 1
Default
How to redirect URL?
Share on: 
fb share twitter share gplus share more share

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.
Adie is offline  
Unread 19th Jun 2012, 08:53 PM   #2
Warrior Member
 
Join Date: 2012
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

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.
ndesoo is offline  
Unread 20th Jun 2012, 03:43 AM   #3
Jedi Master
War Room Member
 
Adie's Avatar
 
Join Date: 2010
Location: City of Smiles
Posts: 4,752
Thanks: 795
Thanked 1,158 Times in 579 Posts
Blog Entries: 1
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

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.
Adie is offline  
Unread 20th Jun 2012, 04:07 AM   #4
Advanced Warrior
War Room Member
 
Janet Sawyer's Avatar
 
Join Date: 2003
Location: United Kingdom.
Posts: 737
Thanks: 107
Thanked 208 Times in 159 Posts
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

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.

Janet Sawyer is offline  
The Following User Says Thank You to Janet Sawyer For This Useful Post:
Unread 20th Jun 2012, 04:36 AM   #5
Jedi Master
War Room Member
 
Adie's Avatar
 
Join Date: 2010
Location: City of Smiles
Posts: 4,752
Thanks: 795
Thanked 1,158 Times in 579 Posts
Blog Entries: 1
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

Originally Posted by Janet Sawyer View Post

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.
Excellent. This is actually what I am looking for...




Moderator's Note: You're only allowed to put your own products or sites in your signature.

Signature edited.
Adie is offline  
Unread 20th Jun 2012, 08:39 AM   #6
Warrior Member
 
Join Date: 2011
Posts: 20
Thanks: 1
Thanked 3 Times in 3 Posts
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

Php is simpler than doing it with .htaccess, but with htaccess you can hide the actual url with a "rewrite" command.

Ciao!
ZapoTeX is offline  
Unread 20th Jun 2012, 05:48 PM   #7
Jedi Master
War Room Member
 
Adie's Avatar
 
Join Date: 2010
Location: City of Smiles
Posts: 4,752
Thanks: 795
Thanked 1,158 Times in 579 Posts
Blog Entries: 1
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

Originally Posted by ZapoTeX View Post

Php is simpler than doing it with .htaccess, but with htaccess you can hide the actual url with a "rewrite" command.

Ciao!
Can you post the complete details on how to do it?
Thank you




Moderator's Note: You're only allowed to put your own products or sites in your signature.

Signature edited.
Adie is offline  
Unread 20th Jun 2012, 07:20 PM   #8
Premium SEO Company
War Room Member
 
System Wide Solutions's Avatar
 
Join Date: 2009
Posts: 417
Thanks: 51
Thanked 41 Times in 30 Posts
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

Originally Posted by Janet Sawyer View Post

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.
Thats great piece of information. Thank you very much!

System Wide Solutions is offline  
Unread 20th Jun 2012, 09:20 PM   #9
Active Warrior
 
Join Date: 2010
Posts: 41
Thanks: 0
Thanked 3 Times in 3 Posts
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

It depends what programming language you are using , if you are using php then you can use header("Location:url")
seokid is offline  
Unread 21st Jun 2012, 01:17 AM   #10
Boat Charter Sydney
 
Join Date: 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

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.
sailcorp is offline  
Unread 21st Jun 2012, 01:34 AM   #11
HyperActive Warrior
 
Join Date: 2011
Location: USA
Posts: 278
Thanks: 0
Thanked 18 Times in 18 Posts
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

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

Tom Albas is offline  
Unread 21st Jun 2012, 04:52 AM   #12
Warrior Member
 
Join Date: 2012
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

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");
Chelam is offline  
Unread 21st Jun 2012, 04:53 AM   #13
Warrior Member
 
Join Date: 2012
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

The URL can be anything such as: United Kingdom TV Channels | TV
Chelam is offline  
Unread 21st Jun 2012, 06:00 AM   #14
Warrior Member
 
Join Date: 2012
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

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.
peter786110 is offline  
Unread 21st Jun 2012, 03:14 PM   #15
Banned
 
Join Date: 2012
Posts: 1,529
Thanks: 39
Thanked 213 Times in 172 Posts
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

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
contentwriting360 is offline  
Unread 21st Jun 2012, 11:56 PM   #16
Active Warrior
 
Join Date: 2012
Posts: 36
Thanks: 1
Thanked 0 Times in 0 Posts
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

using htaccess its possible so try it

anna14 is offline  
Unread 25th Jun 2012, 11:33 PM   #17
Active Warrior
War Room Member
 
Join Date: 2012
Posts: 50
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

<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.
CPAGodFather is offline  
Unread 26th Jun 2012, 02:12 AM   #18
Warrior Member
 
Join Date: 2012
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

if struggling, try running on wordpress, they have plugins to do this automatically
dippo is offline  
Unread 26th Jun 2012, 11:39 AM   #19
Bot Maker / IM Newbie
 
Join Date: 2012
Posts: 24
Thanks: 0
Thanked 2 Times in 2 Posts
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

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
botninja is offline  
Unread 29th Oct 2012, 01:31 PM   #20
Warrior Member
 
Join Date: 2012
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

SEO Ultimate plugin for WordPress if you run a WordPress blog!

SEO by Yoast might also help
gowthamgutha is offline  
Unread 29th Oct 2012, 01:37 PM   #21
HyperActive Warrior
War Room Member
 
idreesfarooq's Avatar
 
Join Date: 2011
Location: Pakistan
Posts: 163
Thanks: 14
Thanked 56 Times in 46 Posts
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

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
idreesfarooq is offline  
Unread 29th Oct 2012, 01:44 PM   #22
HyperActive Warrior
 
Join Date: 2011
Posts: 133
Thanks: 1
Thanked 7 Times in 6 Posts
Default
Re: How to redirect URL?
Share on: 
fb share twitter share gplus share more share

There is a wordpress plugin for that purpose. Are you using wp?
Dong Lee is offline  
Closed Thread


Bookmarks

Tags
redirect, url


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 09:28 AM.