-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathreadme.txt
159 lines (110 loc) · 5.93 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
=== Simple Website Redirect ===
Contributors: wpscholar
Donate link: https://www.paypal.me/wpscholar
Tags: website, redirect, redirection, forward, forwarding
Requires at least: 4.7
Tested up to: 6.7
Stable tag: 1.3.1
Requires PHP: 7.4
License: GPL V2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
A simple plugin designed to redirect an entire website (except the WordPress backend) to another website.
== Description ==
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/).
== Installation ==
= 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'
== Screenshots ==
1. Just enter the URL you want to redirect the site to, set the desired redirection type, set the status to 'Enabled' and save!
2. 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.
== Changelog ==
= 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
== Upgrade Notice ==
= 1.0.1 =
* Fixes bug where redirect occurred when on login page.
= 1.0.2 =
* You can now provide a URL path, not just a domain for redirects.
= 1.1 =
* You now have the option to preserve URLs or redirect all pages to the homepage.
= 1.2 =
* Added the ability to configure exceptions to the site-wide redirect rules.
= 1.2.1 =
* Bug fixes to ensure proper handling of redirects across all use cases.
= 1.2.2 =
* Bug fixes to ensure proper handling of redirects for subdirectory installs under the same domain.
= 1.2.3 =
* Bug fix to handle issues when saving without setting a redirect URL.
= 1.2.4 =
* Now with better compatibility with Elementor and the WordPress customizer!
= 1.2.5 =
* Bugfix for missing vendor directory
= 1.2.6 =
* Minor bugfixes.
= 1.2.7 =
* Minor bugfixes.
= 1.2.8 =
* Fixes issue where redirects were preventing WP-CLI commands from running properly.
= 1.2.9 =
* Fix issue where redirects were not properly preserving URL query parameters.