Title: Simple Website Redirect
Author: Micah Wood
Published: <strong>2018 年 2 月 6 日</strong>
Last modified: 2025 年 3 月 15 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/simple-website-redirect/assets/icon-256x256.png?rev=3200400)

# Simple Website Redirect

 作者：[Micah Wood](https://profiles.wordpress.org/wpscholar/)

[下载](https://downloads.wordpress.org/plugin/simple-website-redirect.1.3.2.zip)

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

 [支持](https://wordpress.org/support/plugin/simple-website-redirect/)

## 描述

The **Simple Website Redirect** plugin allows to you redirect an entire website (
except the WordPress backend) to another website.

The URL path and query string is preserved when redirecting to the new site. Ideally,
the new site would handle any one-off redirects where a URL for an old page should
point to a new page. The [Redirection](https://wordpress.org/plugins/redirection/)
plugin is great for this purpose.

Find out more about [website redirects for SEO](https://moz.com/learn/seo/redirection).

#### Usage Instructions

Using this plugin is simple:

 1. Install the plugin
 2. Activate the plugin
 3. Go to ‘Settings’ in the WordPress admin menu and then click on ‘Website Redirect’.
 4. Enter the URL you want to redirect the site to, set the desired redirection type,
    set the status to ‘Enabled’ and save your changes!

Note: Redirection type can either be ‘Temporary’ or ‘Permanent’. It is recommended
that you start with ‘Temporary’ while testing and then convert to ‘Permanent’ after
testing for maximum SEO benefit. Please be aware that [browsers cache permanent redirects](https://wpscholar.com/blog/browser-caching-301-redirects/).

## 屏幕截图

 * [[
 * Just enter the URL you want to redirect the site to, set the desired redirection
   type, set the status to ‘Enabled’ and save!
 * [[
 * Advanced settings let you configure exclusions to redirects on the front end.
   Very useful if you still need to use a front-end page builder while redirecting
   everything else.

## 安装

#### Prerequisites

If you don’t meet the below requirements, I highly recommend you upgrade your WordPress
install or move to a web host that supports a more recent version of PHP.

 * Requires WordPress version 4.0 or greater
 * Requires PHP version 5.4 or greater

#### The Easy Way

 1. In your WordPress admin, go to ‘Plugins’ and then click on ‘Add New’.
 2. In the search box, type in ‘Simple Website Redirect’ and hit enter. This plugin
    should be the first and likely the only result.
 3. Click on the ‘Install’ link.
 4. Once installed, click the ‘Activate this plugin’ link.

#### The Hard Way

 1. Download the .zip file containing the plugin.
 2. Upload the file into your `/wp-content/plugins/` directory and unzip
 3. Find the plugin in the WordPress admin on the ‘Plugins’ page and click ‘Activate’

## 评价

![](https://secure.gravatar.com/avatar/d76a3b2f4a737b0090806420f5ce694c70dd4fa24a27a7b476f04ba4c2629b24?
s=60&d=retro&r=g)

### 󠀁[Simple and effective](https://wordpress.org/support/topic/simple-and-effective-1455/)󠁿

 [apuliabikeroute](https://profiles.wordpress.org/apuliabikeroute/) 2022 年 12 月
8 日

Just need a plugin just to redirect the old links to the new domain. Needed 5 mins
to do all and works fine

![](https://secure.gravatar.com/avatar/e4b440f82abbd6a518ef5dcbedd239bc608f21dc23ed153479a88e16999a2490?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-9566/)󠁿

 [blunoa](https://profiles.wordpress.org/blunoa/) 2022 年 10 月 25 日

Work perfectly is easy to set up and is the best tool if you need to redirect the
whole website.

![](https://secure.gravatar.com/avatar/0e958eab38fe5f8d584a41887e7d09db3049a3a10f102859bc772a9e26021c36?
s=60&d=retro&r=g)

### 󠀁[Works Perfectly!](https://wordpress.org/support/topic/works-perfectly-2540/)󠁿

 [YaegerDesign](https://profiles.wordpress.org/yaegerdesign/) 2022 年 10 月 21 日
1 回复

This was a really simple option to change domains of a website while waiting on 
DNS updates and domain transfers!

![](https://secure.gravatar.com/avatar/d1591b8a6269ccffc1cdbf140ca1fb1412874734daa383457f9a7e71dce45875?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin](https://wordpress.org/support/topic/excellent-plugin-7448/)󠁿

 [soulcommerce](https://profiles.wordpress.org/soulcommerce/) 2021 年 10 月 18 日

Simple, easy to use and ready to go! Congrats!

![](https://secure.gravatar.com/avatar/10b404f36c072c6bf4317d382d8cd6cf3bccf5880ab813c17f4ba64a4859b55d?
s=60&d=retro&r=g)

### 󠀁[Blocks WP-CLI](https://wordpress.org/support/topic/blocks-wp-cli/)󠁿

 [tkaprol](https://profiles.wordpress.org/tkaprol/) 2021 年 9 月 27 日 1 回复

I’m running the plugin in a multisite deployment. Currently main site redirected
into another using the plugin. However, we can not run any wp-cli command while 
plugin enabled.

![](https://secure.gravatar.com/avatar/37296c848a5dbd22eca50d5e96aa1ff204ba940b5871d8465f8034c082c4ed21?
s=60&d=retro&r=g)

### 󠀁[super simple ….](https://wordpress.org/support/topic/super-simple-82/)󠁿

 [aaronmspelling](https://profiles.wordpress.org/aaronmspelling/) 2021 年 5 月 7
日 1 回复

super simple …. and very …… just simple ……. good job dev.

 [ 阅读所有21条评价 ](https://wordpress.org/support/plugin/simple-website-redirect/reviews/)

## 贡献者及开发者

「Simple Website Redirect」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Micah Wood ](https://profiles.wordpress.org/wpscholar/)

「Simple Website Redirect」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/simple-website-redirect/contributors)
为本插件所做的贡献。

[帮助将「Simple Website Redirect」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-website-redirect)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.3.2

 * Add wp-cron.php to the exclude path.

#### 1.3.1

 * Fix logic for supporting query param exclusion.

#### 1.3.0

 * Fix issue where query params weren’t properly being checked.
 * Allow all REST API calls to work without being redirected (allows WP editor and
   other page builders to work in the admin area).

#### 1.2.9

 * Fix issue where redirects were not properly preserving URL query parameters.

#### 1.2.8

 * Fix issue where redirects were preventing WP-CLI commands from running properly.

#### 1.2.7

 * Allow saving any redirect URL value, but provide a warning to the user if redirecting
   to the same domain.
 * Fix issue where a trailing slash was being added to URLs when it shouldn’t be.

#### 1.2.6

 * Fix issue where some URLs containing file extensions had a trailing slash added.
 * Added WordPress-Redirect-By header.

#### 1.2.5

 * Fix issue with build where vendor directory wasn’t generated.

#### 1.2.4

 * Don’t redirect the REST API
 * Fix to allow use of the customizer without redirecting its contents
 * Fix to allow use of Elementor without redirecting key assets

#### 1.2.3

 * Bug fix to handle issues when saving without setting a redirect URL.

#### 1.2.2

 * Make sure the URL path associated with the WordPress home URL doesn’t get appended
   to the URL when preserving URL paths.
 * Properly sanitize the redirect URL to prevent redirect loops while ensuring compatibility
   with sites installed in a subdirectory.
 * Fixed issue where an empty redirect URL could result in a non-empty redirect 
   URL after filtering.

#### 1.2.1

 * Added the ability to bypass any redirect by appending the `?simple-website-redirect`
   query string.
 * Ensure that redirects are prevented for admin and login pages regardless of where
   WordPress is installed.
 * Fix minor issue where some urls would have double slashes at the beginning of
   the path.

#### 1.2

 * Added the ability to add exclude paths and exclude parameters which, when set,
   will prevent redirects from occurring if a match with one of these exclusions
   is found.

#### 1.1

 * Updated code to comply with strict coding standards.
 * Added an option to redirect all pages to the homepage.

#### 1.0.2

 * Fix bug where redirect URL cannot contain a path
 * Fix bug where redirect URL is sanitized when redirect is disabled.

#### 1.0.1

 * Fix bug where redirect occurred when on login page.

#### 1.0

 * Initial commit

## 额外信息

 *  版本 **1.3.2**
 *  最后更新：**1 年前**
 *  活跃安装数量 **6,000+**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-website-redirect/) 、 [Spanish (Spain)](https://es.wordpress.org/plugins/simple-website-redirect/)
   和 [Swedish](https://sv.wordpress.org/plugins/simple-website-redirect/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/simple-website-redirect)
 * 标签
 * [forward](https://cn.wordpress.org/plugins/tags/forward/)[forwarding](https://cn.wordpress.org/plugins/tags/forwarding/)
   [redirect](https://cn.wordpress.org/plugins/tags/redirect/)[redirection](https://cn.wordpress.org/plugins/tags/redirection/)
   [website](https://cn.wordpress.org/plugins/tags/website/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-website-redirect/advanced/)

## 评级

 4.6 星（最高 5 星）。

 *  [  18 条 5 星评价     ](https://wordpress.org/support/plugin/simple-website-redirect/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/simple-website-redirect/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/simple-website-redirect/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/simple-website-redirect/reviews/?filter=2)
 *  [  2 条 1 星评价     ](https://wordpress.org/support/plugin/simple-website-redirect/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/simple-website-redirect/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/simple-website-redirect/reviews/)

## 贡献者

 *   [ Micah Wood ](https://profiles.wordpress.org/wpscholar/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/simple-website-redirect/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.me/wpscholar)