Title: Versilink &#8211; Replace PDFs Without Breaking Links
Author: mykytadudariev
Published: <strong>2026 年 9 月 17 日</strong>
Last modified: 2026 年 9 月 17 日

---

搜索插件

![](https://ps.w.org/versilink/assets/banner-772x250.png?rev=3700794)

![](https://ps.w.org/versilink/assets/icon-256x256.png?rev=3700794)

# Versilink – Replace PDFs Without Breaking Links

 作者：[mykytadudariev](https://profiles.wordpress.org/mykytadudariev/)

[下载](https://downloads.wordpress.org/plugin/versilink.0.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/versilink/#description)
 * [评价](https://cn.wordpress.org/plugins/versilink/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/versilink/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/versilink/#developers)

 [支持](https://wordpress.org/support/plugin/versilink/)

## 描述

When you update a price list, catalog or PDF guide, the links you already sent by
email, in ads or on social media still point to the old copy. This plugin turns 
an existing Media Library file into a **Document**. Each new version you upload 
replaces the file at its current address, so links you already shared serve the 
new content.

It is aimed at PDF price lists and guides, but works with any file type WordPress
lets you upload, including DOCX and XLSX.

**Features**

 * Create a Document from any Media Library file.
 * Replace the file in place: its existing address serves each new version.
 * Version history with an optional note per version. Users who manage the Document
   can download previous versions and restore any of them.
 * Previous versions are kept in a separate uploads folder under random file names
   and do not appear in the Media Library.
 * A short permanent link (`/docs/your-document`, prefix configurable) that always
   points to the current file. The plugin warns when the prefix clashes with an 
   existing page, post type or taxonomy.
 * Media Library files that are Documents are marked, and other files get a “Create
   Document” action.

**A note on caching**

The permanent link is sent with headers that forbid caching by browsers, but if 
the site uses a page cache or a CDN, the file’s actual address may still be served
from cache until purged. After uploading a new version, purge the relevant cache
so visitors see it immediately.

**A note on nginx**

Previous-version files are stored under a folder with random, non-guessable names,
which is the primary protection against direct access. On servers running Apache,
an `.htaccess` file inside that folder also denies all direct requests. nginx does
not read `.htaccess` files, so on nginx that extra layer is not present; the random
file names remain the only protection.

## 屏幕截图

[⌊Creating a Document from the attachment edit screen.⌉⌊Creating a Document from
the attachment edit screen.⌉[

Creating a Document from the attachment edit screen.

[⌊Version history with notes, downloads and restore.⌉⌊Version history with notes,
downloads and restore.⌉[

Version history with notes, downloads and restore.

[⌊The Documents list with each Document's permanent link.⌉⌊The Documents list with
each Document's permanent link.⌉[

The Documents list with each Document’s permanent link.

[⌊The permanent link prefix setting.⌉⌊The permanent link prefix setting.⌉[

The permanent link prefix setting.

## 安装

 1. Upload the plugin to `/wp-content/plugins/`, or install it through the Plugins 
    screen.
 2. Activate the plugin.
 3. In the Media Library, use the “Create Document” action on a file, or open the new“
    Documents” screen to manage Documents and their permanent link prefix.

## 常见问题

### What happens to the file’s original Media Library address?

It keeps working. Uploading a new version writes the new content to the same physical
file, so any link to the original address (and the Document’s own permanent link)
serves the current version.

### What if I upload a file of a different type, like a DOCX replacing a PDF?

The Document’s current file moves to a new address in the same folder, and the old
address is frozen: it keeps serving the last file of the old type instead of updating
further. The plugin shows a warning when this happens and lists the frozen address
on the Document.

### Is there a file size limit?

New versions use the same upload limit as the Media Library, which is set by your
host. The limit is shown next to the upload field.

### Does deleting a Document delete the file?

No. Deleting a Document on its screen removes its version history and stored previous
versions, but the Media Library file stays untouched. Documents cannot be moved 
to Trash, because that would break their permanent link. Permanently deleting the
Media Library file, on the other hand, deletes the Document and its history too;
the plugin warns about this before you confirm.

### What happens to my data if I uninstall the plugin?

Uninstalling removes the plugin’s Documents, version history, settings and private
storage folder. Media Library files are never touched.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Versilink – Replace PDFs Without Breaking Links」是开源软件。 以下人员对此插件
做出了贡献。

贡献者

 *   [ mykytadudariev ](https://profiles.wordpress.org/mykytadudariev/)

[帮助将「Versilink – Replace PDFs Without Breaking Links」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/versilink)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/versilink/)，查看[SVN仓库](https://plugins.svn.wordpress.org/versilink/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/versilink/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/versilink/)。

## 更新日志

#### 0.1.0

 * Initial release.

## 额外信息

 *  版本 **0.1.0**
 *  最后更新：**2 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **7.1.2**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/versilink/)
 * 标签
 * [documents](https://cn.wordpress.org/plugins/tags/documents/)[media library](https://cn.wordpress.org/plugins/tags/media-library/)
   [pdf](https://cn.wordpress.org/plugins/tags/pdf/)[permalinks](https://cn.wordpress.org/plugins/tags/permalinks/)
   [versioning](https://cn.wordpress.org/plugins/tags/versioning/)
 *  [高级视图](https://cn.wordpress.org/plugins/versilink/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/versilink/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/versilink/reviews/)

## 贡献者

 *   [ mykytadudariev ](https://profiles.wordpress.org/mykytadudariev/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/versilink/)