PHPackages                             simplygoodwork/craft-deadlinks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. simplygoodwork/craft-deadlinks

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

simplygoodwork/craft-deadlinks
==============================

Fight link rot by automatically redirecting broken links to their archived versions.

1.0.0(3mo ago)12MITPHPPHP &gt;=8.2

Since Apr 13Pushed 3mo agoCompare

[ Source](https://github.com/simplygoodwork/craft-deadlinks)[ Packagist](https://packagist.org/packages/simplygoodwork/craft-deadlinks)[ RSS](/packages/simplygoodwork-craft-deadlinks/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Deadlinks plugin for Craft CMS
==============================

[](#deadlinks-plugin-for-craft-cms)

**Fight link rot by automatically redirecting broken links to their archived versions**.

When a user clicks on a broken external link, they will see a confirmation screen which lets them visit an archived version in the Internet Archive Wayback Machine if available.

The confirmation screen uses a neutral design, but you can can specify your own template if you prefer.

Requirements
------------

[](#requirements)

This plugin requires Craft CMS `5.3.0` or later.

Craft must be set to [run queue jobs automatically](https://craftcms.com/docs/5.x/reference/config/general.html#runqueueautomatically).

The plugin needs to make a call to the free [Wayback API](https://archive.org/developers/_static/test-wayback.html) at the address `https://archive.org/wayback/available` in case you need to whitelist this on your host.

Installation
------------

[](#installation)

To install the plugin, follow these instructions:

```
composer require "simplygoodwork/craft-deadlinks:^1.0.0" -w && php craft plugin/install deadlinks

```

for DDEV users:

```
ddev composer require "simplygoodwork/craft-deadlinks:^1.0.0" -w && ddev craft plugin/install deadlinks

```

Settings
--------

[](#settings)

You must [set Craft’s queue to run automatically](https://craftcms.com/docs/5.x/reference/config/general.html#runqueueautomatically)

Other than that, there’s nothing to configure.

Optional: use a custom confirmation screen
------------------------------------------

[](#optional-use-a-custom-confirmation-screen)

If you want to use a custom confirmation screen, create a `/config/deadlinks.php` file and set `confirmationTemplate` to point to a .twig template (relative to your `/templates/` folder)

```
