Need a new web host or having a problem with a script? Tips and advice on the best way to design, build and maintain your most valuable asset - your website!

Redirect all external links thru my website

preethamchandra
Posts: 2
Joined: 23 Jun 13
Trust:

Redirect all external links thru my website

Hello,

This is my first post here, i am loving affilorama everytime i visit.

I had technical difficulty building my website.

My Requirement, (i'm using wordpress)

When i post an external link say "www.external.com".
I want it to be automatically converted to something like this
"www.mysite.com/redirect.php?www.external.com".

Later depending on which site is "external" i will append my affiliate id and redirect.

Can anyone help me with this.
  • 0
Site Admin
cecille.l
Posts: 6944
Joined: 25 Feb 11
Trust:
Hi preethamchandra,

You can try using a plugin like the WP Keyword Link plugin. In your posts you should create texts like www.link1.com. Once done, configure the plugin to convert ALL occurences of www.link1.com to point to [Link no longer available]. You can do the same for other links on your site.

Hope that helps. Have a good day!
  • 0
Cecille


Step by step guide to "Penguin-proofed" sites : www.affilorama.com/affiloblueprint


Add us on Google Plus: http://www.affilorama.com/googleplus
 
preethamchandra
Posts: 2
Joined: 23 Jun 13
Trust:
Thanks a lot for your reply.


In solution you gave, i have to do this to every link on my site.
I post 30 to 40 times a day on average.

My intention is to actually automate it, i was looking at generic solution, like editing .htaccess or something that will work for any link.
  • 0
Site Admin
cecille.l
Posts: 6944
Joined: 25 Feb 11
Trust:
Hi preethamchandra,

You do not have to do this to every link on your site, rather, you need to use the "generic" link you've set (as in my example: www.link1.com) on each post that you need that link on. The plugin will then automatically change the link1.com to whatever link you've set on the plugin for that link.

Hope that helps. Have a good day!
  • 0
Cecille


Step by step guide to "Penguin-proofed" sites : www.affilorama.com/affiloblueprint


Add us on Google Plus: http://www.affilorama.com/googleplus
 

This topic was started on Jul 15, 2013 and has been closed due to inactivity. If you want to discuss this topic further, please create a new forum topic.

cron