MQ ReLinks is a wordpress plugin which allows you to easy redirect all external links in posts, pages, comments, author and widget links, without passing link juice.
In stead of a direct link to another site, the plugin will create a link to a out.php file that will redirect to the requested URL. They can be opened in a new window or in the same one.
You can configure the post, comment and author link options in the administration area.
A redirected link will look like this:
You can edit it to look like this:
To do so you have to edit the .htaccess file and add a line of code:

RewriteRule ^out/(.*)$ wp-content/plugins/mq-relinks/out.php?url=$1 [L] 

right after this part of code:

BEGIN WordPress
RewriteEngine On 
RewriteBase / 
RewriteRule ^index.php$ - [L] 

There are further instructions in the administration area.


  1. Download, unzip, copy mqrelinks directory to your plugin folder.
  2. Go to your wordpress admin panel, click on Plugins and activate MQ ReLinks.
  3. Go to Options>MQ ReLinks and configure the plugin.
    1. Select your desired configuration.
    2. Edit the .htaccess file (if needed)
  4. Click Update.


  • WordPress: 2.3 or higher

Compatible up to:

  • WordPress: 4.7.1

Release info:

  • Date: April 28th, 2008
  • Version: 1.0
  • Date: May 28th, 2009
  • Version: 1.1
  • Date: July 28th, 2010
  • Version: 1.2
  • Date: March 19th, 2012
  • Version: 1.3
  • Date: October 25th, 2014
  • Version: 1.4
  • Date: February 20th, 2015
  • Version: 1.5
  • Date: March 10th, 2015
  • Version: 1.6
  • Date: December 10th, 2016
  • Version: 1.7
  • Date: January 11th, 2017
  • Version: 1.8


=Changes in 1.1=

Updated to work with latest version of wordpress Added support for anchor links (Ex.: href=#top)

=Changes in 1.2=

Updated to work with latest version of wordpress Fixed support for anchor links (Ex.: href=#top) will not be redirected, but will still work Added .htaccess support, now your links can look like In stead of

=Changes in 1.3=

Updated to work with latest version of wordpress Fixed/added support for javascript links (Ex.: href=javascript:void(0)) will not be redirected. Fixed/added support for image links; .jpg, .gif and .png links will not be redirected. You can enable/disable this feature in the administration area.

=Changes in 1.4= Added widget suport Updated to work with latest version of wordpress

=Changes in 1.5= Bug fixes, Updated to work with latest version of wordpress

=Changes in 1.6= Bug fixes, Updated to work with latest version of wordpress

=Changes in 1.7= Bug fixes, Updated to work with latest version of wordpress

=Changes in 1.8= Bug fixes, Updated to work with latest version of wordpress



  1. Unzip the downloaded package and upload the MQ ReLinks folder into your WordPress plugins folder
  2. Log into your WordPress admin panel
  3. Go to Plugins and “Activate” the plugin. “MQ ReLinks” will now be displayed in your Options section
  4. Configure the plugin under Options -> MQ ReLinks

37 thoughts on “MQ ReLinks – wordpress plugin to redirect external links

  • June 15, 2008 at 2:17 pm

    I got fun stuff blog. One of the categories is blog and site of the day. As you can imagine I got many outbound links to other sites and blogs. Do you think that your plug in will work automatically on all of them and this is the right way to lower outbound links and in the same time not to cut presentation of great sites and blogs? You can contact me on my e-mail.

  • July 21, 2008 at 3:47 am


    For some reason, the out.php does not redirect. I have to add a get function.

    Thanks for the plugin.

    What about the blogroll? Any intention to add that into the option?

  • August 21, 2008 at 9:42 pm

    I dont know but plugin is not working any more. I have changed the host, but everything is the same.
    I havent changed anything.
    Can you drop me a word or two?


  • August 25, 2008 at 7:56 pm

    I did, but everything is the same. Is there some requirement I should ask from host? It’s obviously, because it was working great on previous host.

  • August 25, 2008 at 8:54 pm

    Can you be more specific about what`s not working? The whole thing? Look at the links, doese it rediredt them to out.php?

  • August 27, 2008 at 10:28 am

    Ok, so the out.php is not redirecting, that`s from the php settings on your server. Fortunately all you have to do is download the plugin again from wordpress and replace all the files. You don`t have to reinstall it, just replace the files.


  • August 27, 2008 at 6:37 pm

    Yes, now is working fine with new files.

  • September 14, 2008 at 5:50 am

    thanks a lot. that is what i was looking for.

  • Pingback:Plugin Update – MQ ReLinks 1.2 | Silence is everything

  • Pingback:Plugin Update – MQ ReLinks 1.2

  • April 8, 2011 at 7:34 pm

    Does this type of redirect pass any pagerank to the linked website?

  • August 27, 2011 at 4:00 am

    thanks for this :)) very nice 🙂
    but i get /out/javascript:void(0) links now :/ — mabe you can implement a check for this.

  • March 13, 2012 at 11:42 am


    thanks for this plugin firstly. i have a situation. is there a possibility to remove outgoing links on images? because when i click on the image hosted on a different site, it does not load on lightbox.

    i want to exclude jpg and png extensions from relinks. is it possible?

    best regards

  • March 13, 2012 at 2:48 pm

    Please help me!
    I install you plugin and the redirect look like this:”my domain/out/old link” and the Google chrome say: “Oops! This link appears to be broken.” 🙁
    I try to reinstall for a few times soo, and I try to rewrite something htacces to redirect to my domain, but I can’t 🙁
    In fapt, I want to make to disappear from my images wich I imported with rss the link to another sites.
    Can you help me? Thanks!

  • March 19, 2012 at 3:10 pm

    Updated the plugin to work with javascript links and image links, enjoy! don`t forget to donate 😛

  • March 29, 2012 at 7:43 pm

    It’s not working:(
    I update the plugin and I have only image link option,not with javascript link…:(

    • March 29, 2012 at 9:31 pm

      go to the contact page and mail me with the link to the site it is not working on


    • May 21, 2012 at 4:57 pm

      Posted on Hi there, I discovered your blog by the use of Google at the same time as sieachrng for a similar matter, your web site came up, it looks great. I’ve bookmarked it in my google bookmarks.

  • February 11, 2015 at 5:30 am

    Excellent beat ! I wish to apprentice even as you amend your web
    site, how caan i subscribe for a weblog website?
    The account helped me a acceptable deal. I were
    a little bit familiar of this your broadcast offered shiny transparent concept

  • Pingback:Wordpress plugin Update – MQ ReLinks 1.6 - Silence is everything

  • March 13, 2015 at 3:59 pm

    He visto tu sitio y me parece de lo más interesante.
    No sólo pues lo que estás proponiendo tiene un extenso
    conocimiento (o bien cuando menos eso aparenta) sino más bien que la
    forma que posees de expresar tus ideas es genial.

    Espero que en algún instante podamos trabajar algo juntos o cuando menos que me des la oportunidad de recibir alguna visita
    tuya a mi weblog y me des tus puntos de vista. Al final del día quien sino más bien otro
    blogger para juzgar el trabajo de uno.

  • March 18, 2015 at 12:58 pm

    I am really impressed with your writing skills and also with the layout on your blog.
    Is this a paid theme or did you customize it yourself?
    Anyway keep up the excellent quality writing, it is rare to see a nice blog like this one nowadays.

  • March 18, 2015 at 1:09 pm

    Howdy! This is my first visit to your blog! We are a group of volunteers and starting a new project in a
    community in the same niche. Your blog provided us useful information to work on. You have done a outstanding job!

  • March 18, 2015 at 1:13 pm

    I’d like to thank you for the efforts you’ve put in writing this blog.
    I really hope to view the same high-grade blog posts
    by you later on as well. In fact, your creative writing
    abilities has motivated me to get my own website now 😉

  • March 18, 2015 at 3:07 pm

    Hello, I think your blog might be having browser compatibility issues.
    When I look at your website in Firefox, it looks
    fine but when opening in Internet Explorer, it has some overlapping.

    I just wanted to give you a quick heads up!
    Other then that, great blog!

  • March 18, 2015 at 3:54 pm

    What i don’t understood is in reality how
    you are now not actually much more well-appreciated than you might be now.
    You’re so intelligent. You already know therefore significantly in the case of this
    topic, made me in my view consider it from a lot of various angles.
    Its like women and men don’t seem to be fascinated until
    it’s something to accomplish with Lady gaga! Your own stuffs nice.

    At all times care for it up!

  • January 13, 2017 at 4:46 pm

    Hi! How to open link in new window? In the discretion of the plugin says: “They can be opened in a new window” … Help! (Thank you!)

    • January 16, 2017 at 12:49 pm

      Enable the “Blank In” option, that will open your link in a new window.

  • February 14, 2022 at 2:52 pm

    I’m now not certain the place you are getting your information, but good
    topic. I must spend some time finding out more or understanding more.
    Thanks for wonderful information I used to be searching for this
    information for my mission.


Leave a Reply

Your email address will not be published. Required fields are marked *