Welcome to the IMTalk - Internet Marketing & SEO Forum.
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    nescio is offline IM & SEO Whisperer nescio is on a distinguished road
    Join Date
    Jul 2011
    Posts
    66
    Thanks Given
    3
    Thanked 8 Times in 8 Posts

    How to make a link redirect?

    I joined an affliate program recently. The thing is the link shows: h t t p :/ /a f filiateprogra m. we bsho p. c om/etc. This is looking kinda cheap so I'd rather have a link on my own page which redirects to the affiliate link.

    Does anyone know how this is possible. I always thought you could do that with a htaccess file? Does anyone have an example of this?

  2. #2
    wink0r's Avatar
    wink0r is offline Moderator wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold
    Join Date
    Oct 2010
    Location
    East Coast, USA
    Posts
    2,178
    Thanks Given
    925
    Thanked 648 Times in 489 Posts
    I do this with a php 301 redirect. You create a php file with the redirect code and you can name it whatever you want like 'yourbestdeal.php'. Then link to the file that you have created. There are only two short lines required in the php file and you can make it in notepad. Just do a search for php redirect if you are interested in that approach.

  3. The Following User Says Thank You to wink0r For This Useful Post:


  4. #3
    nescio is offline IM & SEO Whisperer nescio is on a distinguished road
    Join Date
    Jul 2011
    Posts
    66
    Thanks Given
    3
    Thanked 8 Times in 8 Posts
    Thank you for your answer wink0r. I just found a htaccess 301 redirect which could be even easier. Thing is, when I upload the .htaccess file I'm getting a 500 internal server error .... I tried everything, so I just asked it to my hosting provider. For some reason they disable a lot of functions, I even had to ask if they would put php on.

    Anyway, thank you for your suggetion!

  5. #4
    wink0r's Avatar
    wink0r is offline Moderator wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold
    Join Date
    Oct 2010
    Location
    East Coast, USA
    Posts
    2,178
    Thanks Given
    925
    Thanked 648 Times in 489 Posts
    Care must be taken when dealing with the .htaccess file as a mistake can break your site. My hosting company runs a syntax check script on any changes to the .htaccess file.

    The affiliate links in my sig use the php redirect. Hover over them to see how they look.

  6. #5
    Nemanja's Avatar
    Nemanja is offline IMTalk.org Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute
    Join Date
    Jun 2010
    Location
    www
    Posts
    4,851
    Thanks Given
    700
    Thanked 3,016 Times in 1,236 Posts
    Check your syntax and if rewrite engine is on...
    Alternatively you can use some URL shortener
    IMT Supercharged Bookmarks - Boost Your Backlinks-> Rankings-> Sales

    Free Tools:
    IMT Website Submitter(Indexer)

  7. #6
    nescio is offline IM & SEO Whisperer nescio is on a distinguished road
    Join Date
    Jul 2011
    Posts
    66
    Thanks Given
    3
    Thanked 8 Times in 8 Posts
    Alright! It's working!

    They (the hosting company) took a look and apparently they had to put something on. Well, they didn't told me what was wrong, but I downloaded the .htaccess file and they didn't made any changes to it.

    Thanks for your time.

  8. #7
    Hogward is offline IM & SEO Mumbler Hogward is on a distinguished road
    Join Date
    Apr 2011
    Posts
    330
    Thanks Given
    11
    Thanked 36 Times in 29 Posts
    Use 301 redirection or rel=canonical to redirect an affiliate link..

  9. #8
    Delois is offline Banned Delois is on a distinguished road
    Join Date
    Aug 2011
    Posts
    78
    Thanks Given
    0
    Thanked 10 Times in 8 Posts
    301 redirect is the best method for creating the redirect link. It is efficient and search engine friendly method for moving the web page. It is very easy method and it preserves the rank of your web page. When you redirect through this method it is permanently moved and it is the safest method.


 

Similar Threads

  1. redirect a site
    By hdhsiuo in forum General SEO Talk
    Replies: 7
    Last Post: 07-22-2011, 01:44 PM
  2. Free SEO Redirect Trick with a lot edu and gov URLs
    By seobunny in forum Link Building General Talk
    Replies: 6
    Last Post: 04-27-2011, 04:38 PM
  3. Replies: 4
    Last Post: 12-15-2010, 04:29 PM
  4. Can SEO works for redirect URL?
    By EC0416 in forum General SEO Talk
    Replies: 3
    Last Post: 11-16-2010, 10:32 AM
  5. Sandbox after 301 redirect
    By kargaa in forum Google
    Replies: 14
    Last Post: 10-31-2010, 10:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts