Free WordPress Internal Linking Plugin, Step-by-Step Guide

MT Smart Link Automation is a free internal linking plugin for WordPress that handles automatic internal linking for you. You may also see this kind of plugin called an auto linking plugin or an automatic internal links plugin. What it does is simple! You decide which keywords should link to which page, and wherever those keywords appear in your site’s text, the plugin links them to that page. No more going through articles one by one and adding links by hand!

If you’re looking for a way to add internal links in WordPress, this page is for you! Everything from installing the plugin to seeing the links on your pages is here, step by step, with screenshots.

I (Mohsen Tavoosi) wrote this plugin myself, and I set its rules myself. These rules come from 15 years in SEO and a background in software development, and the plugin runs exactly these rules. The reason behind each rule, with a wrong and a right example, is on the automatic internal linking rules page. This page is the full guide to the plugin, from installation to what every checkbox and field in the panel means and why it’s there. Wherever it helps, I put the rule’s code in brackets, like (rule S1), so you can find the reasoning on that page.

The plugin is completely free and published in the official WordPress plugin directory. Use the list below to jump straight to any section or any setting.

On this page

  1. What exactly does this plugin do?
  2. Adding internal links in WordPress, by hand or with a plugin?
  3. What do keyword group, intent and link limit mean?
  4. How do I install the plugin?
  5. Where is the plugin panel, and what’s in it?
  6. How do I create my first keyword group?
  7. How do I manage the keyword groups table?
  8. How do I see whether the links were added?
  9. Every setting, one by one, with the reason and an example
  10. How do I back up my keyword groups and import them again?
  11. What does the How to use page in the panel cover?
  12. How do I launch automatic internal linking safely?
  13. What should I do if the plugin creates a wrong link?
  14. Why wasn’t the link I expected created?
  15. How does internal linking work with WooCommerce, Elementor and caching?
  16. How does the plugin decide where to add links, step by step?
  17. What are the plugin’s rules, and why does each one exist?
  18. How can I be sure the plugin works correctly?
  19. I’ve read this page. Where do I start?
  20. FAQ

What exactly does this plugin do?

The plugin creates links only when a page loads, whether for a visitor or for Google, and it never touches the text you wrote in the WordPress editor (rule S1)! That means if you deactivate it one day, the links disappear from every page and your posts stay exactly as they were. If your site uses a cache (the ready-made copy of your pages that speed plugins create), this happens after you clear the cache. Links are added only when the page loads, and no link is ever written into the stored text. You can see how the plugin works in the image below:

Infographic showing that the internal linking plugin creates links when the page loads and never changes the stored text in the database

A keyword group is all the keywords and phrases that should link to one page, together with that page’s URL. For example, for a running shoes page, you create a keyword group with “running shoes”, “buy running shoes” and “running sneakers”. In the plugin’s English panel, a keyword group is called a Record (keyword group and link). I chose that name myself, so wherever you see Record (keyword group and link) in the panel, it means a keyword group.

These are the most important things the plugin does:

  • Each keyword group holds up to 20 keywords and one target URL (rule K1).
  • Each keyword and each URL can be in only one keyword group (rules K2 and K3).
  • Only whole words get links, so “book” inside the word “notebook” gets no link. Uppercase and lowercase don’t matter either, so SEO and seo count as the same (rules M1 and M2).
  • When a short phrase and a longer phrase containing it are both in your keyword groups (like “running shoes” and “men’s running shoes”), the longer phrase gets the link (rule M3).
  • No page links to itself (rule Z2).
  • You set the link limit of each keyword group per page and per paragraph (rules C1 and C2).

Adding internal links in WordPress, by hand or with a plugin?

There are two ways to add internal links in WordPress: by hand or with a plugin. In the WordPress editor, you can select a word and link it by hand with the link button. That’s fine for a few articles! But once you have hundreds of articles and new posts every day, you can’t keep up with manual linking, and you forget which word was supposed to link to which page.

With an internal linking plugin, you build your keyword groups once and the rest is automatic. Each keyword is defined once, for one page only, and its link is created in every post, old and new! Links you added by hand stay where they are, with one exception: a link whose text is exactly a keyword but that points to a different page (rule L1).

What do keyword group, intent and link limit mean?

Before you create your first keyword group, learn these three terms. I explain them in full on the automatic internal linking rules page, and the rest of this page builds on them:

  • Keyword group. All the keywords and phrases that should link to one page, together with that page’s URL, as I explained above.
  • Intent. What the searcher actually wants. Someone who searches “running shoes” wants any kind of running shoe, but someone who searches “men’s running shoes” wants only men’s models. So these are two separate intents.
  • Link limit. The maximum number of links created from the keywords of one keyword group, on one page or in one paragraph.

In a sample shoe store, “men’s running shoes” and “women’s running shoes” have different intents, so each one gets its own keyword group and its own page. “best running shoes” links to an article, not to a product page. The image below shows this store’s keyword groups:

Infographic of a shoe store where each keyword group, holding the keywords of one intent, links to its own page

Synonyms, and phrases that only add “buy” or “price” (like “buy running shoes”), share the same intent, so they go into one keyword group. Men’s, women’s, lightweight and orthopedic each need their own keyword group and their own page. Keyword targeting decides which page each keyword belongs to, not the plugin. The plugin only runs the keyword groups you create.

How do I install the plugin?

MT Smart Link Automation is published in the official WordPress plugin directory (WordPress.org), so you install it like any other WordPress plugin. In your WordPress admin, go to Plugins, click Add New, and search for MT Smart Link Automation. You’ll find it with the name and icon you see below. Click Install Now, then Activate:

MT Smart Link Automation plugin card in the WordPress Add Plugins screen with the Install Now button

The current version, the changelog and the number of active installs are on the plugin’s page on WordPress.org.

Once it’s active, the plugin’s row in your plugin list has a Settings link that opens the plugin panel directly. Next to my name there are two more links, WordPress guide and General rules, which open this page and the automatic internal linking rules page, as you can see below:

MT Smart Link Automation installed and active in the WordPress plugin list with its Settings link

The plugin works on WordPress 5.8 or later and PHP 7.4 or later.

If you used an older version of this plugin, under the name Auto Internal Links or Autolink by MohsenTavoosi, the plugin moves your keyword groups and settings over on its own. Backup files you exported from the old version (their names start with ail) are accepted in Import too. Even so, export a backup of your keyword groups before every update (rule S4). It takes a minute, and if an update ever goes wrong, this one file brings everything back!

Where is the plugin panel, and what’s in it?

When you activate the plugin, a new menu called MT Smart Links appears in your WordPress admin. It has four pages:

  • Records. Where you create, edit and delete keyword groups, with a table of all of them.
  • Settings. The checkboxes and options that apply to every keyword group.
  • How to use. A quick start and a short summary of how the plugin works.
  • Import / Export. Where you download a backup of your keyword groups and import them again.

The panel is in English and ready to be translated into other languages. You can see the MT Smart Links menu and its four pages below:

The MT Smart Links menu in WordPress with its four pages Records, Settings, How to use and Import / Export

How do I create my first keyword group?

Linking keywords in WordPress with this plugin starts with a keyword group. On the Records page, click Add New Record. You need two things, a list of keywords (one per line) and the URL of the target page. The other fields have sensible defaults, and you only change them when you need to. I explain each field below. Here is the empty keyword group form:

The Add New Record form of the internal linking plugin with all its fields

What do I write in the Keywords field?

Write one keyword per line. Each keyword group holds up to 20 keywords or phrases (rule K1). Every form people search for one intent goes here, like the singular and plural, other spellings, or the same phrase with “buy” or “price”. Below, seven ways of writing “running shoes” sit in one keyword group:

The Keywords field of the running shoes keyword group with seven forms on separate lines

The keyword on the first line is the main keyword for that page. When smart link diversity is on, links are spread over the keywords in the order of this list (rule M6). So put the form that matters most to you near the top.

Each keyword can only be in one keyword group (rule K2). If you enter the same keyword in a second group, the plugin refuses it and tells you which group already has it, like the message below:

Error message saying the keyword is already registered in another keyword group

The reason is simple. If one keyword links to two pages, those two pages compete for the same keyword. In keyword targeting, each intent has exactly one page.

What URL goes in the Link URL field?

This is the address of the target page for this keyword group. It must start with http:// or https://, or be a path on your own site that starts with one slash, like /running-shoes/ below:

The Link URL field with the target page of the keyword group

If the URL is wrong, the keyword group isn’t saved and you get the message below. Addresses such as javascript or data are refused for the same reason, because a link that runs code is a security risk for your site (rule S5):

Error message for an invalid link URL in the internal linking plugin

Each URL can also be used in only one keyword group (rule K3), because all the keywords of a page have to sit in one group for that page’s link limit to be counted correctly. If you enter a URL that another group already uses, you get the message below. The plugin treats a URL with and without the trailing slash, or with upper and lower case letters in the domain, as the same URL:

Error message saying the URL is already registered in another keyword group

What does Max links per page mean?

This number says how many times, in total, the keywords of this group can be linked on one page. The default is 1, as you can see below (rule C1):

The Max links per page field with its default of 1

Why 1? Several links from one page to the same target are worth no more than one link, and they only clutter the text. All the keywords of a group count together, so with a limit of 1, the whole group gets one link per page. A link you added yourself to the same URL counts toward this limit too. For example, if you already linked “running shoes” to the running shoes page by hand in an article, a limit of 1 means the plugin doesn’t add a second link to that page.

What does Max links per paragraph mean?

This is the link limit for this group inside each paragraph. In the current version of the plugin the default is 0, which means no limit, as you can see below (rule C2):

The Max links per paragraph field, where 0 means no limit

As long as the page limit is 1, this number has no effect, because the whole page gets only one link to this target. But if you set the page limit to 3, for example, set this to 1. Otherwise all three links could land in the same paragraph! With 1, the links are spread across different paragraphs.

Which Paragraph detection mode should I pick?

This field tells the plugin how to recognize a paragraph (rule C3). It has two modes, shown below, and the first one is the default:

The two paragraph detection modes, p and br tags or text between headings

The first mode (Take <p> and <br> tags as paragraph) treats every block of text separated by Enter as a paragraph, which suits normal text. The second mode (Take texts between headings as paragraph) treats all the text between two headings as one paragraph. The text before the first heading and after the last one are a paragraph each.

The second mode exists because some themes and page builders put every line in its own paragraph, and when you switch themes, the paragraph limit stops meaning anything. The heading mode doesn’t fall apart when the theme changes. If your pages make every line a separate paragraph, choose the second mode. In that mode, the text inside headings never gets links, because there the headings are the borders between sections. The mode you choose is shown later in the Para Mode column of the keyword groups table.

What is the Only on these pages field for?

With this field, the keyword group works only on the pages you pick (rule Z3). Empty means every page, which is also the default. Type the title or ID of a page and pick it from the list that opens. Below, pages were found by searching for the word “How”:

Searching and picking a page in the Only on these pages field to test a keyword group on one page

Its main use is testing! To be on the safe side, limit a new keyword group to one page first and check that page with View Source (I explain how below). Once the links look right, remove the page from this field so the group works across the whole site. Keep in mind that a keyword group limited to certain pages isn’t used in category and tag descriptions.

This row has four checkboxes, Follow, Nofollow, External and Noopener. By default none of them is ticked, which means a normal link is created, as you can see below:

The four link attribute checkboxes Follow, Nofollow, External and Noopener in the keyword group form

For internal links, leave all of them unticked! An internal link should be a normal, followed link so authority flows between your pages. These checkboxes are for when a keyword group links to another site, for example a tool’s name linking to that tool’s own website. Here’s what each one does:

  • Follow. Adds nothing to the link, because a normal link is already followed. It’s only there to make it clear you chose follow on purpose.
  • Nofollow. Adds rel=”nofollow” to the link. Only one of Follow and Nofollow can be ticked.
  • External and Noopener. Each adds its own word to the link’s rel attribute, and they’re meant for links to other sites.

When the form is filled in, click Add Record. When you edit a keyword group, this button is called Save Changes. The Cancel button closes the form without saving.

Watch out for a common mistake! Don’t put “men’s running shoes” and “women’s running shoes” inside the “running shoes” keyword group. Each has its own intent, so each needs its own keyword group and its own page. Otherwise only “running shoes” ever gets linked, and “men’s running shoes” or “women’s running shoes” never link to the men’s or women’s page!

Deciding which page should rank for each keyword is called keyword targeting. Keyword groups should be built from your targeting, not from guesswork. If your keyword groups are built with AI, the AI should apply the same criteria I teach, not make the decisions on its own!

How do I manage the keyword groups table?

On the Records page, all your keyword groups sit in one table, one group per row. These are the columns:

  • Keywords and Link URL. The group’s keywords and the URL of the target page.
  • Max/Page and Max/Para. The link limit per page and per paragraph.
  • Para Mode. P/BR means the first mode, and Heading means the text between headings mode.
  • Post IDs. If the group is limited to certain pages, their IDs show here. All means every page.
  • Link attributes. The link attribute checkboxes you ticked. A dash means a normal link.
  • Actions. Edit changes the keyword group, and Delete removes it.

In the sample store, running shoes and their men’s, women’s, lightweight and orthopedic versions, plus “best running shoes”, each have their own keyword group and URL. Here is the table of the store’s ten keyword groups:

Table of the ten keyword groups of a shoe store in the internal linking plugin

The order of the keyword groups in this table matters! When two phrases are the same length, this order decides which one gets linked first (rule K4). Deleting a keyword group can’t be undone, so export a backup on the Import / Export page first!

Open the page in your browser and look at it with View Source (right-click and View page source, or Ctrl+U), not with Inspect! Inspect shows what JavaScript changed after the page loaded, while View Source shows exactly what the plugin built. If you don’t see the links, clear your site cache, because until it’s cleared, the old page without links keeps showing. If you use a CDN (a network of servers that keeps ready-made copies of your pages close to visitors), clear the CDN cache too. Below you can see the result on an article in the sample store, with the links highlighted so you can spot them:

Sample shoe store article with three automatic internal links in three paragraphs

Notice three things in this example:

  • “running shoes” is linked only the first time. The second time, in the second paragraph, it gets no link, because the default limit is one link per keyword group per page (rule C1).
  • “men’s running shoes” links in full to the men’s page, not the “running shoes” part inside it, because the longer phrase comes first (rule M3).
  • “best running shoes” links to the comparison article, not the sales page, because its intent is comparing, not buying, and it has its own keyword group.

Five paragraphs, three links, each one to the right page. That’s what automatic internal linking is supposed to look like, not an article stuffed with links!

Every setting, one by one, with the reason and an example

The default settings work well for most sites. Change them only when your own site needs it. Below I explain every setting on its own: what exactly it does, what its default is, why I chose that default, and when to change it.

Links are only created while a page is being shown, and your post text and database are never changed (rule S1). So you can try any setting without risk and switch it back. After every change, click Save Settings at the bottom of the page and clear your site cache. Nothing takes effect until you save.

Here is every setting with its default at a glance:

What does the Enabled checkbox do?

This checkbox turns all automatic links on or off at once, without deactivating the plugin (rule S3). It sits in the Plugin status row and is on by default, as you can see below:

The Enabled checkbox in the Plugin status row, on by default

If you untick it and save, the links disappear from every page right away, while your keyword groups and settings stay where they are. Your post text never changed, so there’s nothing to undo. It exists so that if you ever spot a wrong link, for example because a keyword group was set up wrong, you don’t have to deactivate the plugin or delete your keyword groups. You untick one box, the site is clean again, and you can find the cause calmly. After turning it off, clear your site cache too.

What does the Half-space (ZWNJ) checkbox do?

With this checkbox, the plugin treats a half-space and a normal space as the same, both in your keywords and in the page text (rule M5). A half-space (ZWNJ, zero-width non-joiner) is a character some languages use to keep two parts of a word apart without a full space. The checkbox is called Treat half-space (ZWNJ) as a space, and it’s on by default, as you can see below:

The Treat half-space (ZWNJ) as a space checkbox, on by default

It’s on by default because writers in those languages sometimes join a word with a space and sometimes with a half-space. If the plugin saw them as different, you’d have to add every keyword twice. A half-space at the edge of a word still counts as a word boundary, so a partial match never happens. On a site in a language without half-spaces, such as English, it makes no difference either way. Turn it off only if your site’s language gives a half-space and a space different meanings.

What does the Smart link diversity checkbox do?

With this checkbox, the links of one keyword group don’t all go to the same keyword. Inside each group, the first link on a page goes to the keyword on line 1, the next link to the first keyword that has no link on that page yet, and so on to the end of the list. Then it starts again from line 1 (rule M6). This checkbox is in the Keyword order row and is on by default. The Read the tutorial link next to it, which you can see below, opens the automatic internal linking rules page:

The Smart link diversity checkbox in the Keyword order row, on by default

Example. A keyword group has two lines, “SEO course” first and “SEO training” second, and a limit of 2 per page. With this checkbox on, one link goes on “SEO course” and one on “SEO training”, even if “SEO training” appears earlier in the text.

It’s on by default so that links spread over every way of writing one intent, not always the same keyword. You decide the order of the list, so the most important form gets the first link, not whichever form happens to come first in the text. If you turn it off, the order of the keywords doesn’t matter, and whichever keyword comes first in the text gets linked, within the limits.

When a short phrase sits inside a longer one, which one gets the link?

Under rule M3, the longer phrase always comes first and its place is reserved for it. So in “buy men’s running shoes”, the “running shoes” part in the middle doesn’t get a link, and the link never ends up meaning the wrong thing. The A phrase inside a longer phrase row has three checkboxes, and they are only optional exceptions to this rule. All three are off by default. They sit in two separate boxes, because each box covers a different situation, and no combination of them can conflict, as you can see below:

The A phrase inside a longer phrase row with three checkboxes in two boxes, different groups and same group

Confused? I get it! If you don’t have a clear reason, leave all three off. I explain each one with an example below.

Two phrases in different groups: unlock the longer phrase after its limit

This checkbox is in the first box, which covers the case where the short and the long phrase are in two different keyword groups with two different URLs. If you turn it on, once “men’s running shoes” reaches its link limit on a page, its remaining spots are released, and “running shoes” inside it can link to the running shoes page.

It’s off by default because each intent has its own page. Text about men’s running shoes should link to the men’s page, not the general one. If the longer phrase’s spot is released, the short phrase gets linked in the middle of the long one and the link means the wrong thing, like linking only “running shoes” inside “buy men’s running shoes” while the reader is clearly shopping for men’s shoes. Turn it on only when the short phrase’s page gets too few links, because on your site that phrase mostly appears inside longer phrases.

Two phrases in different groups: link a short phrase that has no link yet

This checkbox is in the first box too. If you turn it on and the short phrase has no link anywhere on the page, it gets one link inside a longer phrase that has no link, as long as the longer phrase itself isn’t linked at that spot. A link inside a link is never created.

Example. A page where “running shoes” only ever appears inside “men’s running shoes” and never on its own. With this checkbox on, “running shoes” gets one link, so the general page gets one link from this page too.

This is the gentlest exception, because it creates only one link, and only when the short phrase has no link anywhere else. But it’s off by default for the same reason as the previous one: the longer phrase’s spot belongs to its own intent.

Two phrases in the same group: vary the anchor text

This checkbox is in the second box, which covers the case where the short and the long phrase are in the same keyword group and lead to the same URL. If you turn it on, and a page links the longer phrase twice or more but never the shorter phrase inside it, the last link of the longer phrase goes to the shorter phrase instead. The first link of the longer phrase always stays, the number of links doesn’t change, and no limit is touched. If the longer phrase is linked only once, nothing happens.

Example. A keyword group with “keyword research” and “keyword”, a limit of 3 per page, and a page that says “keyword research” three times. With the checkbox off, all three links go on the longer phrase. With it on, two links go on “keyword research” and the third goes only on “keyword” inside it. One URL, two different anchor texts.

This checkbox exists separately because the two checkboxes of the first box have no effect inside one group. When both phrases are in the same group, they share one page limit and one paragraph limit, so there’s nothing to “unlock”. It was built as its own checkbox so it can be controlled on its own without confusion. It’s off by default, because with it off, the links are still correct and go to the right page.

What does the Front page checkbox do?

With the Add links on the front page checkbox, your site’s homepage gets automatic links too. If you turn it off, the homepage never gets automatic links, whatever its post type. It’s on by default, as you can see below:

The Add links on the front page checkbox, on by default

It’s on by default because the text on your homepage is content too, and an internal link from the homepage is usually the strongest internal link on the site. If your homepage is a designed sales page (with banners and sliders, for example) and you don’t want anything on it to change, untick it.

What does the Headings checkbox do?

With this checkbox, a keyword inside a heading (h1 to h6) can get a link, just like the rest of the page text. This works in every editor and in the Elementor heading widget. If you turn it off, headings never get automatic links. It’s on by default, as you can see below:

The Headings checkbox that turns links inside h1 to h6 headings on or off

It’s on by default because a heading is site text too, no different from the rest. There’s one exception. A keyword group whose paragraph mode is “texts between headings” never links inside a heading, because in that mode headings are the borders between sections. If your headings are styled in a way that makes a link inside them look odd, turn it off.

A manual link is a link you added yourself in the editor. If the whole text of a manual link is exactly one of your keywords but it points to another URL, it conflicts with your keyword group. The Manual links with another address row has two checkboxes, one for internal manual links and one for external ones. Both are on by default, as you can see below:

The two checkboxes for rewriting internal and external manual links that conflict with a keyword group

When a checkbox is on, that manual link is removed while the page is shown, and the same phrase gets the keyword group’s link instead, within the limits. If the group’s limit is already reached, the manual link is removed and the phrase is shown without a link. A link whose text is longer than the keyword, or unrelated to your keywords, is never touched (rule L1). And as always, the saved post text doesn’t change.

Rewrite internal manual links that conflict with a record

This checkbox is for a manual link that goes to another page on your own site. Example. In an old article you linked “running shoes” by hand to the athletic shoes page, but in your keyword groups “running shoes” belongs to the running shoes page. With this checkbox on, that link is corrected to the running shoes page.

It’s on by default because each keyword has exactly one target, meaning one intent and one page. What’s right and wrong is defined by your own keyword groups, and an old manual link pointing elsewhere breaks that rule. Turn it off only if you deliberately want a keyword to link somewhere else on some pages.

Rewrite external manual links that conflict with a record

This checkbox applies the same rule to manual links that go to another site. It’s on by default for the same one-keyword, one-target rule. It’s separate from the previous checkbox so you can keep external links on their own. Turn it off if your articles link a tool’s or a source’s name to its own website and that same name is also in your keyword groups.

How do I stop automatic links on a specific page?

In the Excluded pages field, type the title or ID of any post, page, product, category or tag and pick it from the list that opens. You don’t need to hunt for the numeric ID (rule Z3). A page you pick here never gets automatic links. The field is empty by default. Below, a title was searched and the results appeared in the list:

Searching a page title in the Excluded pages field

The pages you pick show under the field, and the Remove button next to each one takes it off the list. The search only covers the post types and taxonomies you ticked further down. On an excluded page the plugin does nothing at all, so your own manual links stay exactly as they are. Here is the empty field:

The Excluded pages field in the plugin settings

This field exists because some pages shouldn’t change, like a sales page, your terms page, the cart or a page designed on purpose without links. That’s the site manager’s call, not the plugin’s. A page that is the target of a keyword group never links to itself anyway (rule Z2), so you don’t need to exclude it.

Which types of pages get links?

Post types

This row decides which types of pages get links. By default every public type on your site is ticked (posts, pages, WooCommerce products and so on), as you can see below:

The Post types row with posts and pages ticked

This is the default because wherever there’s text, internal links help. Untick a type that has no readable content. For WooCommerce products, both the full and the short description get links, and the link limit counts both texts together, not each one separately.

Taxonomies

This row decides whether the description text of categories and tags, including subcategories, product categories and tags and custom taxonomies, gets links. By default none is ticked, as you can see below:

The Taxonomies row for links inside category and tag descriptions

It’s off by default because many themes don’t show category descriptions at all, or repeat them at the top of every archive page of that category. Turn it on only if your theme shows the category description and that description has real text.

What does the On uninstall option do?

The option Delete all plugin data when the plugin is deleted is off by default. If you turn it on and then delete the plugin, all keyword groups and the plugin’s own settings are deleted for good. Export a backup on the Import / Export page first! You can see this option below:

The option to delete all plugin data when the plugin is deleted, off by default

It’s off by default so that if the plugin is deleted by mistake, or you want to reinstall it, weeks of targeting work aren’t lost. Even when it’s on, only this plugin’s own data is deleted. WordPress data and other plugins are never touched, and your post text never changed in the first place. Turn it on only when you’re sure you don’t want this plugin anymore.

Which rules have no checkbox and always apply?

Some rules have no setting at all, because turning them off would only hurt your site:

  • Only whole words get links. “book” isn’t linked inside “bookshop”. Hyphens and underscores join words too, so “ai” isn’t linked inside “mcp-ai”, “my_ai”, “ai.com” or “/ai/v1”, while “AI” at the end of a sentence or inside brackets is (rule M1).
  • Code and copy boxes never get links. Links inside code boxes aren’t touched either, so whatever the reader copies stays intact.
  • A page never links to itself, and a link is never created inside another link (rule Z2).
  • Menus, header, footer, sidebar and buttons are never touched, and they don’t use up the page’s link limit (rule Z1).

How do I back up my keyword groups and import them again?

On the Import / Export page, you download your keyword groups as a JSON file and import it again with Merge or Replace. You can see this page below:

The plugin's Import / Export page with the Export and Import sections
  • Export. The Export All Records (JSON) button downloads one JSON file with all your keyword groups and settings. Export before any big change (rule S4).
  • Import. Files up to 1 MB are accepted. In Merge mode, your current keyword groups stay and the file’s groups are added to them. Duplicate keywords or URLs aren’t added, and the plugin tells you how many duplicates it skipped. In Replace mode, all current keyword groups are deleted first, then the file’s groups are imported. Before anything is imported, the whole file is checked, and if something is wrong, your current keyword groups aren’t touched. Always export your current state before a Replace!

What does the report after an import mean?

When an import finishes, the plugin tells you how many keyword groups were imported and how many were skipped. Below, a file with five keyword groups was imported. Two groups were added and three were skipped, each for a different reason:

Import report with the number of keyword groups imported and skipped

These are the reasons a keyword group gets skipped:

  • Invalid. A group with no keywords, an empty URL or a URL that isn’t accepted (javascript, for example). These groups aren’t imported, because links can’t be built with them.
  • Duplicate URL. A URL that’s already used by another keyword group. Each URL goes in only one group (rule K3).
  • Duplicate keyword. A group that has a keyword already registered in another group. Each keyword goes in only one group (rule K2), otherwise two pages compete for the same keyword.

If a keyword group has more than 20 keywords, only the first 20 are imported (rule K1). If the whole file is broken, the plugin says the file isn’t valid and nothing changes, not even in Replace mode.

When should I export, and which import mode should I choose?

  • Export. Before any big change, before a Replace, before deleting keyword groups and before deleting the plugin. Keep the JSON file wherever you need it, even for another site.
  • Merge. When you have new keyword groups and want to add them to your current ones. It’s the safer mode, because nothing is deleted.
  • Replace. When you want to swap the whole list for a new one, for example after rebuilding your targeting from scratch.

The export file is plain text, so you can hand it to AI to build new keyword groups or review your current ones. Just remember that which keyword belongs to which page is decided by your targeting, not by the AI! When the file comes back, import it with Merge and read the report.

What does the How to use page in the panel cover?

This page is a summary of the plugin inside the panel, so you can remember how it works without opening this guide! The Quick start section gives the first six steps, and the How it works section sums up the plugin’s main rules in a few lines. At the end there are links to this guide and to the automatic internal linking rules page, where every rule and its reasoning is explained in full. You can see this page below:

The plugin's How to use page with the Quick start and How it works sections

How do I launch automatic internal linking safely?

The launch has seven steps, so don’t skip any of them. I explain the reason for each step on the automatic internal linking rules page. Each step prevents a costly mistake:

  1. Back up the whole site, and your current keyword groups if you have any. For keyword groups, that’s the Export button (S4).
  2. Don’t touch the default settings.
  3. Build keyword groups from keyword targeting, not from guesses. Each page’s keyword group should hold every way of writing that page’s intent (K1), and no keyword should be in the keyword groups of two pages (K2).
  4. Limit a keyword group to one page with Only on these pages (Z3) and look at that page with View Source. Check the link position, the number of links, and that your manual links and the page code are intact.
  5. Remove the limit, then clear the site cache and the CDN cache. If you don’t clear them, the old page without links keeps showing.
  6. If you see a problem, untick Enabled (S3). Restoring a full site backup is the last resort, because orders and articles added after the backup would be lost.
  7. Track the results in Search Console, for example impressions (how many times the page appeared in Google results) and clicks. If you see a change, just know that it happened at the same time as the links, not necessarily because of them.

On the Settings page, untick Enabled and save. That’s it! Every link disappears from every page, and your keyword groups stay where they are (rule S3). Clear the cache too. Once you’ve found the cause, turn it back on! If only one link is wrong, you don’t need to turn everything off. Fix that keyword group with Edit and clear the cache.

If the problem is in the plugin itself, send me a report through this link!

Why wasn’t the link I expected created?

It’s almost always one of these reasons. Check them in this order, since the list starts with the most common one:

  • Did you clear the cache? Check this first. Clear the site and CDN cache, then look again with View Source. Most “it doesn’t work” cases come down to this!
  • Is the plugin on? The Enabled checkbox on the Settings page has to be ticked.
  • Does this page get links at all? Is its type ticked in Post types? (For category and tag descriptions, is its taxonomy ticked in Taxonomies?) Is the page not in Excluded pages? If it’s the homepage, is the Front page checkbox on? Is the keyword group not limited to another page with Only on these pages?
  • Is the keyword in the text written exactly the same way? The plugin links only whole words. For example, “book” inside “notebook” gets no link. Uppercase and lowercase letters don’t matter, and with its checkbox on, a ZWNJ counts as a space too.
  • Is the limit already reached? Check Max links per page and Max links per paragraph. A keyword group with a limit of 1 creates no more links after the first one (rule C1).
  • Is the spot reserved? This one confuses people the most. Say you have two keyword groups, one with “garage door opener” and one with “garage door”. The spot of “garage door opener” is reserved for the first keyword group, even when its limit is reached. So “garage door” gets no link inside it, only where it appears on its own (rule M3). If you don’t want this behavior, read about the two long and short phrase settings I explained above.
  • Was it another keyword’s turn? When Smart link diversity is on, links are shared out between the keywords of a keyword group in the order of the list (rule M6). The first link may have gone to keyword number 1, and it wasn’t the turn of the keyword you were looking at. Change the keyword order, or turn link diversity off.
  • Is there already a link on the page? A link you added by hand, whose text is exactly the keyword and whose URL is correct, stays as it is and counts toward the limit. If its URL is different from the keyword group’s URL, it’s changed to the keyword group’s URL. A link whose text is longer than the keyword also stays as it is, and nothing is linked inside it.
  • Is the keyword in a place that doesn’t get links? No links are created inside code, script, style, pre, textarea, button or svg. If the keyword group uses Take texts between headings as paragraph, the text inside the headings themselves gets no links either.
  • Is this page the keyword group’s own target? A page doesn’t link to itself. So a keyword whose keyword group points to this page gets no link on this page.
  • Was the keyword group’s URL saved correctly? Only http, https and a path starting with a single slash are accepted. Open the keyword group with Edit and check the URL.

If the link still doesn’t show up after all this, untick Enabled so your site stays safe, and send me a report through this link!

How does internal linking work with WooCommerce, Elementor and caching?

On WordPress 6.9 and later, the plugin processes all of a page’s content at once, so the link limit and the keyword order count for the whole page (rule S6). On older versions, from 5.8 up to 6.9, each part of the page is processed separately. For most pages that makes no difference, but if a page has separate parts (an article body plus Elementor sections, for example), the link limit counts separately for each part.

These are covered:

  • The block editor (Gutenberg) and the classic editor.
  • Elementor. The Theme Post Content and WooCommerce Product Content widgets aren’t processed separately, so the same text is never counted twice.
  • WPBakery and Toolset.
  • WooCommerce product descriptions, full and short, whose link limit counts for the two together.
  • Category and tag descriptions, including subcategories. WooCommerce product category descriptions are covered on WooCommerce 6.7 and later.

Caching is covered too. The page is built with its links first, and then the cache saves that linked page. So the plugin processes a page’s text only when the cache builds a fresh copy. After you add new keyword groups, clear the cache so the old page doesn’t keep showing!

Let me be honest about one thing. I haven’t yet tried Elementor, WooCommerce and caching plugins on live sites, in every combination. If you see anything strange, untick Enabled and send me a report through this link!

Places where the plugin never creates links:

  • The menu, header, footer and sidebar, because only the content area is processed.
  • Output that WordPress sends to apps and other plugins (REST and AJAX), feeds (RSS), the robots.txt file and the WordPress dashboard.

How does the plugin decide where to add links, step by step?

The order of these steps matters, because it’s this order that keeps a short phrase from getting a link inside a long one. The full description of each step is on the automatic internal linking rules page. Every time a page loads, the plugin goes through these eight steps in this order:

  1. If Enabled is unticked, or this page shouldn’t get links, the plugin does nothing.
  2. It prepares the keywords so that uppercase and lowercase letters, spaces and ZWNJ make no difference (M2, M4 and M5), and sorts them from longest to shortest. When two keywords are the same length, the order of keyword groups counts first, then the order of keywords inside the keyword group.
  3. It reads all content areas of the page together (S6). Places that must not get links (Z1) and existing links are set aside. Existing links are checked first and count toward the link limit (L1).
  4. It finds every place where a keyword appears in the text, longest phrases first. Each match that doesn’t overlap a spot that’s already reserved is reserved for that phrase, whether or not it ends up with a link (M3).
  5. Matches whose target is this same page are dropped (Z2).
  6. From the reserved spots, links are chosen within the link limits (C1 and C2). If link diversity is on, they’re chosen in the keyword order of each keyword group (M6). If it’s off, in the order they appear in the text.
  7. If either of the two optional long phrase settings is on, the plugin applies it (M3).
  8. Links are created only on the page the visitor sees, and the original text doesn’t change (S1).

The image below shows the same eight steps, in the same order:

Infographic of the eight steps the plugin follows to choose where links go

Because of this reservation, a short phrase doesn’t get a link inside a long phrase!

What are the plugin’s rules, and why does each one exist?

The plugin runs 23 of my 24 rules. The one it doesn’t run is S2. Here I list each rule with what it says, why it exists, a wrong and a right example, and where you’ll find it in the plugin panel. Click the code of any rule to open that rule on the automatic internal linking rules page.

Which safety and data rules does the plugin follow?

Safety rules are the first thing any automatic internal linking tool needs. They decide what happens to your content if something goes wrong.

S1. Links are created only when the page loads

Rule. Links are created only at the moment a page is served to a visitor. The page’s original text, the version stored in your site’s database, never changes. Why. If you switch the plugin off, the links disappear from every page at once and the original text stays untouched. If links were written into the original text instead, undoing them would mean keeping a before-and-after copy of every page. And restoring a full site backup wipes out every order, article and comment added after that backup!

Wrong. The plugin writes links into the stored text of each article. Right. You open the article in the editor and there isn’t a single automatic link in it. The links exist only on the page the visitor sees.

In the plugin. This behavior is always on, and there is no setting to change it.

S2. Writing links into the stored text, only if the site admin chooses it

Rule. For a very large, high-traffic site, where creating links on every page load puts real pressure on the server, there could be a second mode that saves links into the original text. That mode would have four conditions. Link creation on page load (S1) stays the default, a full backup and a before-and-after copy of every page are saved before anything is written, every change can be undone with one click, and manual links stay intact. Why. Some sites are so large and busy that building links on every page load doesn’t pay off for them. Even for those sites, there has to be a way back.

In the plugin. I haven’t built this mode, so the plugin always creates links when the page loads (S1). If your site uses a cache, the cached copy already contains the links, so the server load stays low.

S3. One switch that turns off every link

Rule. There must be one switch that turns off every automatic link at once, without deactivating the whole plugin. Why. If you notice something odd after launch, every link should be gone from every page within seconds. You shouldn’t have to hunt down keyword groups and delete them one by one!

Wrong. To stop the links, you have to delete every keyword group one by one. Right. You untick the box, and the links disappear from every page while your keyword groups stay where they are.

In the plugin. This checkbox is called Enabled, and it’s the first setting on the Settings page. After you untick it, click Save Settings and clear the cache.

S4. Exporting and importing keyword groups (Export and Import)

Rule. You must be able to export every keyword group to a file and import that same file back. JSON is the best format for this. It’s a text file with a fixed structure that both people and software can read. An imported file also has to be checked in full before anything is deleted or replaced. Why. This file is the backup of your keyword groups. It’s also what you need to move the site, and AI can read your keyword groups from it or build new ones for you!

Wrong. The imported file is broken, and the plugin first deletes every current keyword group and only then shows an error. Right. The plugin checks the whole file first. If something is wrong, it doesn’t touch the current keyword groups.

In the plugin. The Import / Export page. It accepts files up to 1 MB and has two modes, Merge and Replace. The details are in the backup section of this page.

S5. Security is enforced

Rule. Only the site admin can create keyword groups. Only URLs that start with http or https are accepted. Everything that’s entered is cleaned of harmful code, and forms are protected against request forgery (CSRF). Why. The URL field is exactly where someone could plant harmful code! Request forgery means someone submits a form on the admin’s behalf, without the admin knowing.

Wrong. A URL that starts with javascript is accepted as a link target. Right. URLs that start with javascript or data, and URLs without http or https, are rejected.

In the plugin. Every form is for the site admin only and is protected with a security code (a nonce). The target URL is accepted only as http, https or a path that starts with a single slash.

S6. All content areas of a page are processed together, never the menu or footer

Rule. All content areas of a page are processed together. That means the text written in the editor, sections built with a page builder such as Elementor, product descriptions and category descriptions. This way, the link limit and the keyword order count for the whole page. The menu, header, footer and sidebar are never processed. Why. If each area were processed on its own, a page with three areas could end up with three links to the same page! Processing all areas together doesn’t add server load. If your site uses a cache, meaning it keeps a ready-made copy of each page, this happens once, when a fresh copy is built.

Wrong. Each area of the page is processed separately, and the “1 link” limit counts once per area. A page with three areas gets three links to the same target. Right. The limit counts for the whole page, and the same three-area page gets only one link to that target.

In the plugin. This whole-page processing runs on WordPress 6.9 and later. On older versions (5.8 up to 6.9), each area is processed separately, so the link limit counts once per area. The details are in the compatibility section of this page.

Which keyword group rules does the plugin follow?

K1. Each keyword group holds every way people write the keyword

Rule. Each keyword group has a list of keywords and phrases that all link to one URL. Every way of writing one intent goes into this list: with and without a space, singular and plural, with words like “buy” or “get”, synonyms and abbreviations (like “CCTV”). The link is created on whichever form appears in the text. Why. People write the same thing in several ways, and every one of those forms should link to the same page!

Wrong. For a security cameras page, only “security cameras” is added, and every other form stays unlinked. Right. The keyword group for the security cameras page includes “security cameras”, “buy security cameras”, “home security cameras”, “surveillance cameras” and “CCTV cameras”.

In the plugin. The Keywords field in the keyword group form. Up to 20 keywords or phrases, one per line.

K2. Each keyword has only one target page

Rule. If you add a keyword to a second keyword group, the plugin must reject it and show an error, whether the target page is an article, a product or a category. Why. In keyword targeting, each intent has only one page, and this rule applies the same principle to links. If one keyword linked to two pages, nobody could tell which page it really belongs to!

Wrong. “second mortgage” (a second loan on the same home) is also added to the keyword group of the “second home mortgage” page (a loan to buy a second home), even though their intents are different. Right. Each one goes only into its own page’s keyword group, and a second entry is rejected with an error.

In the plugin. With the ZWNJ checkbox on, two keywords that differ only by a space versus a ZWNJ also count as duplicates.

K3. Each URL has only one keyword group

Rule. Each target URL appears in only one keyword group. Why. All the keywords that link to one page must be in one keyword group. Otherwise the link limit (C1) for that URL is counted more than once!

Wrong. Two separate keyword groups are created for one URL. Right. That URL has a single keyword group, with all its keywords inside it.

In the plugin. The Link URL field. Adding a URL that’s already used shows an error.

K4. The order is fixed and predictable

Rule. The order of keyword groups, and the order of keywords inside each keyword group, is saved, so the links come out identical every time. Why. When two keywords could both take a link, this order decides which one gets it first!

Wrong. The keyword order changes every time you save. Right. The order is exactly the one you entered.

In the plugin. The order of lines in the Keywords field, and the order of keyword groups in the keyword groups table on the Records page, stay exactly as you saved them.

Which keyword matching rules does the plugin follow?

M1. Only whole words get a link

Rule. A keyword gets a link only when there’s a space or a punctuation mark (such as a period or a comma) on both sides of it. If it’s attached to another letter or number, it doesn’t get a link. Why. A link in the middle of another word changes the meaning!

Wrong. “book” inside “notebook” gets a link. Right. “book” gets a link only when it stands on its own.

M2. Uppercase and lowercase don’t matter

Rule. SEO and seo count as the same word, and the link text keeps the exact form written on the page. Why. The site admin shouldn’t have to add every capitalization of a word!

Wrong. “SEO” is saved, and “seo” in the text stays unlinked. Right. The link is created, and its text stays “seo”.

M3. The longer phrase takes priority and its spot is reserved

Rule. When a short phrase appears inside a longer one, the longer phrase takes priority, and that spot in the text is reserved for it. This holds even if the longer phrase has reached its link limit and gets no link there. The short phrase gets a link only where it appears on its own, and only within its own link limit. If two phrases are the same length, the order of keyword groups, then the order of keywords inside the keyword group, decides which one gets the link (K4). Why. If the short phrase linked first, the long phrase that contains it would never get a link. And if the long phrase’s spot opened up once its limit was reached, the short phrase would link inside it, to the wrong page.

Wrong. In “Get Second Home Loan”, only “Second Home Loan” gets a link. Or the link limit of “garage door opener” has been reached, and in the second “garage door opener”, only “garage door” gets a link. Right. “garage door opener” gets a link as a whole, and the second one stays completely unlinked. “garage door” gets a link only where it appears on its own.

In the plugin. This behavior is always on. It also has two optional settings, both off by default: Unlock longer phrases after their page limit, and Link a shorter phrase inside a longer matched phrase. I explain both in the settings section of this page.

Since the longer phrase keeps its spot, “men’s running shoes” links as a whole to the men’s page, instead of “running shoes” inside it linking to the general page. The image below shows this:

Infographic showing that the longer phrase men's running shoes gets the link instead of the shorter phrase inside it

M4. Different kinds of spaces count as one

Rule. A normal space and a non-breaking space (a space where the browser never breaks a line) count as the same. The & sign also counts as the same, whether it’s typed directly or written as &amp; in the HTML. Why. Page text isn’t always typed plainly, and editors sometimes change these characters!

Wrong. “R&D” (research and development) gets no link when it’s written as &amp; in the page code. Right. “R&D” gets a link in both cases.

M5. Treating ZWNJ as a space is a setting

Rule. There should be a checkbox that treats the zero-width non-joiner (ZWNJ) as a normal space, both in keywords and in page text. ZWNJ is an invisible character that some languages, mostly those written in Arabic script, place between two parts of a word. This checkbox is on by default. But if a keyword is joined to a suffix with a ZWNJ, it doesn’t count as a whole word and gets no link (M1). Why. Writers in those languages use ZWNJ all the time, and the plugin has to recognize it! If your site’s language gives ZWNJ its own meaning, turn the checkbox off. On an English site, it makes no difference either way.

Wrong. A keyword is saved with a normal space, the text has a ZWNJ in the same spot, and it gets no link. Right. With the checkbox on, it gets a link. With the checkbox off, it doesn’t, which is correct for languages where the two characters mean different things.

In the plugin. The Treat half-space (ZWNJ) as a space checkbox on the Settings page, on by default.

M6. Link diversity by keyword order (recommended, on by default)

Rule. In each keyword group, the first link goes to keyword number 1, if it appears on the page and a longer phrase hasn’t reserved its spot. The next link goes to the first keyword that hasn’t been linked on this page yet, and so on down the list. Once every keyword that appears on the page has been linked once, it starts again from number 1. A correct link that’s already on the page counts as that keyword’s link. All of this happens within the link limit. Why. Links spread across every form of one intent, and the site admin decides which form matters more through the order of the list.

Wrong. A keyword group has [1 “running shoes”, 2 “buy running shoes”] with a limit of 1, and the page text says “buy running shoes … why running shoes matter”. The link goes to “buy running shoes” because it comes first in the text, even though the site admin ranked number 1 higher. Right. The standalone “running shoes” gets the link, and the spot of “buy running shoes” stays reserved. If this checkbox is off, the list order doesn’t matter, and whichever keyword appears first in the text gets the link. This rule works correctly only when all areas of the page are processed together (S6).

In the plugin. The Smart link diversity checkbox on the Settings page, on by default. The Read the tutorial link next to it opens the automatic internal linking rules page.

Which rules about link placement and existing links does the plugin follow?

Z1. Only text the visitor reads gets links

Rule. Parts of the page code that visitors don’t see as text never get links, such as tag attributes, script and style code, code samples inside code and pre, form fields (textarea), buttons and svg images. Why. These parts aren’t text that a visitor reads, and putting links inside them breaks the page code!

Wrong. The word “SEO” inside a code sample in an article gets a link. Right. Only the normal text of the page gets links.

In the image below, only the content area gets links, and the menu, header, sidebar and footer never do:

Infographic of a web page where the menu, header, sidebar and footer get no links and only the main content does

Z2. A page never links to itself

Rule. A page doesn’t link to its own URL. If the URL of this page is written without the domain (a relative URL), or with its characters encoded (like %20), it still counts as this same page. Why. A link to the same page takes the reader nowhere!

Wrong. On the “athletic shoes” page, the text “athletic shoes” links to that same page. Right. That text stays unlinked.

Z3. You choose where links are created

Rule. You must be able to choose which page types (posts, products, categories and so on) and which areas (category descriptions, product descriptions and so on) get links. A keyword group can also be limited to a few specific pages for testing. The site’s homepage gets its own checkbox. Pages that must never get links are picked by searching their title, so nobody has to type a page ID. Why. The first time, you need to be able to test the plugin on a single page!

Wrong. The plugin runs on the whole site from the very first moment, with no way to test it. Right. You limit a keyword group to one page, and if the result is right, you remove the limit.

In the plugin. Post types, Taxonomies, the Front page checkbox, the Excluded pages field and the Only on these pages field. I explain all of them in the settings and keyword group form sections of this page.

Z4. Every editor and page builder is covered

Rule. Text written with any editor or page builder, including their HTML blocks, gets links, and no text is processed twice. Why. Site content isn’t only in the main editor. If part of the page gets no links, or gets processed twice, the link limit breaks!

Wrong. Text built with a page builder gets no links at all, or it’s processed twice and gets two links. Right. Each area is processed exactly once.

In the plugin. The block editor (Gutenberg), the classic editor, Elementor, WPBakery and Toolset are covered. In Elementor, the Theme Post Content and WooCommerce Product Content widgets aren’t processed separately, so the same text is never counted twice. The details are in the compatibility section of this page.

L1. Links already on the page are handled correctly

Rule. There are four cases:

  • A link whose text is exactly the keyword and whose URL is correct stays as it is, and it counts toward the link limit.
  • A link whose text is longer than the keyword stays as it is, and no link is created inside it.
  • A link whose text is exactly the keyword, but whose URL is different from the keyword group’s URL, gets the correct URL.
  • Links without a URL, email links (mailto) and # links (links to a section of the same page) stay as they are.

Why. What counts as right or wrong is what the site admin defined in the keyword groups, not the plugin’s guess!

Wrong. “security cameras” gets a link inside the manual link “network security cameras”, so one link ends up inside another. Right. The manual link stays intact, and nothing is linked inside it.

In the plugin. The URL change happens only when the page loads. The link inside the editor stays exactly as it was.

Which link limit rules does the plugin follow?

C1. Link limit per page for each keyword group

Rule. The default limit is 1 link per page for each keyword group. All the keywords of one keyword group count together. The count covers the whole page, even when the page is built from several areas. On pages that list several articles one after another (like a category page), the limit counts separately for each article. Why. Linking to the same page too many times clutters the text!

Wrong. “buy garage doors”, “garage doors” and “garage door styles” link to the same target three times on one page, because each form was counted separately. Right. All three forms count as one, and only one link is created.

In the plugin. The Max links per page field in the keyword group form, and the Max/Page column in the keyword groups table.

A limit of 1 means one link on the whole page, even when the page is built from several areas. You can see the wrong and the right version of this in the image below:

Infographic comparing the wrong and the right way to apply a limit of one link on a page built from three areas

C2. Link limit per paragraph

Rule. The link limit per paragraph can be changed, and 0 means no limit. Why. Some sites don’t want more than one link to the same target in one paragraph, and some don’t mind. So the number shouldn’t be fixed!

Wrong. A fixed number is hard-coded into the plugin. Right. The number can be changed.

In the plugin. The Max links per paragraph field, 0 by default (no limit), and the Max/Para column in the table.

C3. A paragraph can be defined in two ways

Rule. In the first way, every p or br tag counts as a paragraph. In the second, all the text between two headings counts as one paragraph, and so does the text before the first heading and after the last one. Why. The heading method doesn’t fall apart when you change the site theme, since some themes put every line in its own p tag!

Wrong. Only the p tag defines a paragraph, and changing the theme makes the paragraph limit meaningless. Right. Both methods exist, and the site admin picks one.

In the plugin. The Paragraph detection mode field, with two options: Take p and br tags as paragraph, and Take texts between headings as paragraph. In heading mode, the text inside the headings themselves gets no links. The same choice shows up in the Para Mode column of the table.

How can I be sure the plugin works correctly?

I test the plugin with test cases. A test case is a specific example whose correct result is known in advance. For example, for the keyword group “book” and the text “a new notebook”, the correct result is “no link”. I have more than 70 test cases, and every time the plugin changes, they all run again together. I also checked the plugin with the official WordPress Plugin Check tool (no errors and no warnings) and ran it on a real WordPress install. Elementor, WooCommerce and caching plugins haven’t been tried on live sites yet, as I said in the compatibility section.

The table of 21 core test cases, with their correct results, is on the automatic internal linking rules page. If you build tools yourself, write them as automated tests and run all of them before you turn the tool on for your site.

I’ve read this page. Where do I start?

It’s simple! Install the internal linking plugin, leave the default settings alone, create one keyword group and test it on a single page first.

The hardest part is building keyword groups correctly, meaning deciding which page each keyword should link to. I teach the method step by step in my SEO course. And if you want your own AI to do the same job with my method, take a look at Mohsen Tavoosi’s MCP. It’s a monthly subscription that gives your AI all my ready-made skills. A skill is an instruction file that teaches AI how I work.

FAQ

Is this automatic internal linking plugin for WordPress free?

Yes, the plugin is completely free!

Which WordPress version does the internal linking plugin need?

You need WordPress 5.8 or later and PHP 7.4 or later. You can see the current version on the plugin page on WordPress.org. Whole-page processing runs on WordPress 6.9 and later.

Does the plugin change the text of my posts?

No. Links are created only when the page loads, and the text you wrote in the editor isn’t touched. If you deactivate the plugin, the links disappear (after you clear the cache, if you use one)!

What is a keyword group in the plugin?

All the keywords and phrases that should link to one page, together with that page’s URL. In the plugin’s English panel it’s called a Record (keyword group and link), and you create one with the Add New Record button.

Who set the rules?

I did, Mohsen Tavoosi. I set them after 15 years in SEO and with a background in software development, and I wrote the plugin myself. Each rule is a specific behavior the plugin has to follow. The reason for each one, with a wrong and a right example, is on the automatic internal linking rules page.

What happens if I used the older version (Auto Internal Links or Autolink by MohsenTavoosi)?

The plugin moves your keyword groups and settings from the old version by itself, and an export file from the old version, whose name starts with ail, is accepted too. Even so, export your keyword groups before you update.

Should I change the default settings?

No. The default settings are excellent and don’t need changes, unless the way your site works really calls for one.

How many keywords can I put in each keyword group?

Up to 20 keywords or phrases. Each keyword and each URL can be in only one keyword group. If you add the same keyword to a second keyword group, the plugin shows an error and rejects it!

Why didn’t a keyword get a link?

I listed the common reasons, in order, in the section Why wasn’t the link I expected created? Most of the time, clearing the cache and checking the page with View Source is enough!

Will the plugin break my manual links?

No, except in one case. A manual link whose anchor text is exactly the keyword and whose URL is the target page of this keyword group stays as it is. A link whose text has more than just the keyword stays too. Only a link whose text is exactly the keyword, but whose URL is different from the keyword group’s URL, is changed to the URL of that keyword group’s target page. And even that change happens only when the page loads, so the link in the editor stays as it was.

How do I test linking on a single page?

In the keyword group form, pick that page in the Only on these pages field, then check the page with View Source. Once you see the links are right, remove the limit and clear the cache.

Does the plugin add links in Elementor pages and WooCommerce products too?

Yes, as long as products are ticked in Post types, and for category and tag descriptions, their taxonomies are ticked in Taxonomies. The block editor and the classic editor, Elementor, WPBakery, Toolset, WooCommerce product descriptions and category and tag descriptions are covered. The details are in the compatibility section of this page.

How do caching and a CDN affect the links?

The plugin creates links when the page loads, and that linked page is what gets saved in the cache. So after you add new keyword groups, just clear the cache and the CDN so the old page doesn’t keep showing.

If something goes wrong, how do I turn every link off quickly?

Untick Enabled on the Settings page, save and clear the cache. The links disappear from every page, and your keyword groups stay where they are!

How should I build keyword groups?

Keyword groups have to come from keyword targeting, not guesses. First decide which page each keyword should link to, then put every form people search for that same intent into that page’s keyword group. I teach the method in my SEO course.

Can a site that isn’t on WordPress have the same automatic linking?

Yes. These rules don’t depend on any platform, and your technical team or AI can build them into any site. The full guide is on the automatic internal linking rules page.

Does automatic internal linking improve rankings?

I make no promises about rankings or results! The plugin only does the linking job correctly, according to the rules.

How do I delete the plugin without losing my keyword groups?

The Delete all plugin data option is off by default, so deleting the plugin doesn’t delete your keyword groups. If you’ve turned it on, everything is deleted for good, so export before you delete the plugin.

If I find a bug in the plugin, where do I report it?

Send me a report on the plugin’s official support forum on WordPress.org. Suggestions to improve the plugin are welcome there too. If you tell me which page and which keyword group you saw it with, I can look into it faster.