How to set up an affiliate link redirects and replace links on WordPress

Problem with compatible links Over time, the number of links to a site increases to an amount that cannot be controlled manually. The problem starts even with smaller projects when old links need to be replaced - for example, in the case of redirecting traffic from old links to new pages. Personal transformation is a painful task. In addition to the difficulty of maintaining links, many, numerous external links can affect the engine management of your project. Converting links to inline tags slightly solves the problem with search engines but does not make it easier to maintain hundreds of links to your site. Solution An important solution to the problem is to use the link management system to fix links by redirecting. With the tools for creating and managing links, you can change the target URL with just a few clicks. Finally, the link in your article still has the same format as yourdomain.com/link1, but the user will not go to jetradar.com as before, but to flights.jetradar.com, for example. There are a few ways to manage compatible links. We have collected the most important ones below and reviewed them in more detail. What is link redirect? Redirect redirects users to another page. When you click on a link like yourdomain.com/link1, the user stays on the affiliate page - for example, jetradar.com. Redirecting is not only required to control links in articles but also to remove duplicates, 404 errors, and a domain name slake. In the latter case, you can save the site position in the SERP and traffic from the previous domain name. Redirect algorithms very simple: User clicks on the link. The server or browser is processing the data. The user is automatically redirected to a specified link in cases where there is a redirect. This process is automatic and fast. Redirect 301, 302, 307 Ten HTTP redirect codes are available, but only three of them are required. Let's look at their main points. 301: Continuous redirect, indicating transfer is permanent. This code usually means that the site is redirected while moving to another domain. 302: Temporary redirect. Indicates that site traffic is temporary. This is ready to redirect the ambassador links. 307: Temporary Redirect. The use of the code does not allow the query method (GET / POST) to change. In fact, codes 307 and 302 were the same. How to stop link redirecting Rookies could not cope with setting the redirect to work. That is why we have reviewed the basic methods of redirecting links. Link reduction services These services help redirect links without changing your settings or installing software. You can use web-based versions of services: https://goo.gl/ (valid until March 30, 2019) https://u.to/ https://bitly.com/ The examples above are simple services for shortening links. This redirect does not solve all your problems but allows you to pack links in the same format and learn more math. HTML, JS, and PHP Scripts The redirect done with the help of PHP scripts puts an extra load on the server. However, it is best if you have many, numerous pages. This type of redirect is performed at server level. Redirect using JavaScript applies to browser level. Full load in the browser is needed to make it work, which is why this method is slower than PHP redirecting. It is sometimes used for redirecting delays. Also, JS redirect does not work unless you open a JavaScript function. HTML code redirect is similar to JS and works at browser level, so it is slower than redirect at server level. WordPress' plugins If the website is based on WordPress, it is best to use third-party plugins. They help to narrow down the link and create a link on your domain, as well as manage redirect and collect statistics. Below, we look at each redirect method and provide a valid sample. The top three shortcuts for URLs shorten long links Goo. Go https://goo.gl/ Google's link reduction service always shows a consistent quality pattern. You can continue with any actions with just a few clicks. The interface is intuitive, easy to use, and minimalistic. You must authorize statistics, where you can study Number of hops Links to links on the web Popular map of different countries viewing platforms and browsers are widely used Unfortunately, as of April 13, 2018, only adult users can use this service. Google will stop using this service on March 30, 2019. Bitly.com Bitly.com Bitly is one of the best link reduction services. You can specify short links and see detailed statistics. The service is free, but a paid version is available. The paid version extends enough functionality. With it, you will find detailed analysis Link Builder Flexible business settings Extensive technical support Personnel manager U.KU U.KU U.to is a simple service with a small set of options. Allows you to create a very short link that starts with u.to. This service is available in seven languages. According to user reviews, this site is one of the most reliable, always functional, and has not had much time to rest in the past. Popular WordPress plugins Design plugins provide the same functionality but include a variety of additional functions. You will get an abbreviated link to your domain as a result. Plugins provide quick link redirection on WordPress and an easy way to manage links. For example, you can change the target URL. First Link Manager First Link Manager Thirsty Affiliate Link Manager is a high quality plugin that claims to be a useful helper for bloggers who benefit from managed programs. Its 20,000 active downloads and excellent ratings prove the quality and popularity of the plugin. Users state the following facts in their reviews: Easy to use because of the visual editor More insight into management links secure redirect with codes 301, 302, and 307 Add images to managed links Statistics and reports A paid version (PRO version) for one, five, or number of sites is available. Short Links with Pretty Links Short Links with Pretty Links Short Links by Pretty Links is a multi-function plugin for managing links to WordPress that has already collected 200,000 active plugins. With the plugin, you can create your links by redirecting to the targeted URL from the administration panel of your website. You can also manage previously created links. You do not need to know how to enter code to operate this service. Major paid version options: 301, 302, and 307 redirect Link separation Mathematical illustrations Data transfer in .csv format How to install You can download the archive from the official library or install the plugin with the control panel of your website. Type the name of the plugin in the search bar and click Enter: How to install it A new block will appear in the management menu after activating the plugin: Menu Creating links Jump to the “Add Link” section: https://yourdomain.com/wp-admin/admin.php?page=add-new-pretty-link. The editor will open. Set up a short link with the target URL: Creating Links In the redirect area, select basic parameters — in this case, 302. Click Create at the bottom of the page to save the link. Then you can use the link - in this case, yourdomain.com/avia - wherever you want. The user will jump to the page you set after clicking the link - https://search.jetradar.com/flights/LON1312IST1 1 in our example. Managing links, All links are collected on the plugin's main page. Here you also see basic statistics, such as the total number of clicks. Manage Links You can change your target URL as needed — just select the link you like and set a new target URL in the open window. Then the previous link will lead you to a new page, and you do not have to set up a link to your site. On the Click page, additional data per click is available. Report Opportunities abound, All of the above are available in a free version. The paid version of the plugin, Pretty Link Pro, is also available. The following services are available in a paid version: Automatic conversion of links to websites Automatic posting of spoken word links Redirect based on user country A / B testing Other activities A paid license costs $57 per year for one website. You can get a 10% discount with a 10 OF coupon code. Easy Affiliate Links Easy Affiliate Links Easy Affiliate Links is one of the Short Links by Pretty Links. The plugin is based on the Amazon membership system but can be used for any other links. More than 10,000 people are using Easy Affiliate Links to narrow down links so far. Highlights of the plugin Intuitive interface Statistics Link separation Connect import and export to .XML Engineers also offer additional paid options, such as detailed statistics. Click location, A / B testing, and "broken" link tracking are currently being upgraded. Jetpack Sharing Links Short Links Jetpack Sharing Links Short Links Jetpack Sharing Short Links is a redirect plugin on WordPress with a full set of link reduction functions. It is widely used as an add-on to the Jetpack plugin to enhance its options. You can track statistics with the free plugin, Yeast's Google Analytics. Developers are aware that Jetpack Short links are currently under development, so errors may occur. However, they are usually repaired very quickly. Because this project has open source software, problems are posted on GitHub. Connect redirect with PHP-script and JavaScript As we have shown, PHP redirecting works faster than JS, making it very popular among webmasters. For easy redirecting, add the following code to the index.php file: $ links = parse_INI_file ('short links.ini'); UMA (INSET ($ _ GET ['l']) && array_key_exists ($ _ GET ['l'], $ links)) {header ('Location:'. $ links [$ _ GET ['l']]);} more {header ('HTTP / 1.0 404 Not Found'); echo 'Unknown link';} There is no control panel in this case. All key links are automatically short links.ini. Note that you must also create this file manually. Then you can write this code inside the file: jet radar = https://www.jetradar.com/?marker=.short As a result, you will find links to the format yourdomain.com/index.php?l=jetradar. This sample shows a typical link redirect on WordPress with a PHP script. JavaScript redirecting is done with code placed between handbags on the appropriate page. To do so, you must use plugins, such as the Per page add to head. Here is a simple JavaScript redirect code: Note that it is not possible to create JavaScript code independently between handbags if there is an integrated design without any third-party plugins. This is why you should create a separate template for each page or use an additional plugin to apply the code. An excellent solution for WordPress sites, Half the story left to create a redirect link. After that, you will need to manage the link - track stats and change targeted URLs. Turnkey solutions look better than standard PHP / JS scripts as it allows you to do more with less effort. Without a control link you already have, you may have one problem - using new links on the site or replacing the old ones. For example, you have been doing a travel blog for 4 years but have just discovered special link plugins. Then you have to solve the problem - replace hundreds or thousands of old links. The Pretty Link plugin in the improved version is a multi-functional solution. In addition to redirecting, it has additional default options: Replace old links to get links in the new format. Set up links to words you have never had before. This plugin is good, but not free. You can solve this problem effectively using two plugins - Prettying (free version) and free plugin for changing old links on the site. How can you make a complete replacement of old links on a website? Important! You should always create a backup copy of your site's website before you can install it! The BetterSearchReplace Plugin will be useful for automatic replacement of old and new links, as well as word placement. More than 50,000 active installations are currently in use. Its main options are as follows: Major replacement of old links. Selecting different tables will work. "Inaction" begins to look for areas to be reviewed. This plugin will help you to update old links or put new ones in names. For example, you can include the search terms for "air tickets" and point to the following for change: plane ticket This method has other options. You can use the same plugins or make changes to the MySQL website using the control panel. Another opportunity is to use the PHP-script “Replace DB version 3.1.0” available here. Compatible with both WordPress sites and other popular CMS. While we were preparing this information, we explored a wide range of solutions, including the URL plugin Shortener by MyThemeShop. A promising explanation is that you will get the tools to redirect, manage, and use great free replacements. It would be a better option than the paid Pretty Linker, yet it does not work. Should you redirect managed links? You need to redirect links to manage your project in the best possible way. If the tool you choose is widely used, your work will be successful. Link management systems offer more options than manual installation. For example, you can do A / B testing for a new niche in one click by exchanging targeted URLs. Of course, you can manually create all the plugins and script settings. The question is one of great benefit to your work and your opportunities. While using redirect, you should be aware that if the user is unable to understand the essence of redirecting, he or she may become irritated. That is why you should make good and clear summaries, and comfort the user with every little detail about his destination when he is ready to click. Share your questions and information on redirecting and managing relevant links to the site in the comments section.

Enjoyed this article? Stay informed by joining our newsletter!

Comments

You must be logged in to post a comment.

About Author

Content marketing is the technique of creating valuable, unique and relevant content for your target audience. A good content marketing plan should aim to build a strong relationship with your customers and provide them with valuable information throughout the buying cycle. Content that solves their problems, entertains them or simply interests them on an ongoing basis means your brand