| 1 |
=== Plugin Name === |
| 2 |
Contributors: johnny5 |
| 3 |
Donate link: http://urbangiraffe.com/about/ |
| 4 |
Tags: post, admin, seo, pages, manage, 301, 404, redirect, permalink |
| 5 |
Requires at least: 4.3 |
| 6 |
Tested up to: 4.8 |
| 7 |
Stable tag: 2.6.3 |
| 8 |
|
| 9 |
Redirection is a WordPress plugin to manage 301 redirections and keep track of 404 errors without requiring knowledge of Apache .htaccess files. |
| 10 |
|
| 11 |
== Description == |
| 12 |
|
| 13 |
Redirection is a WordPress plugin to manage 301 redirections, keep track of 404 errors, and generally tidy up any loose ends your site may have. |
| 14 |
This is particularly useful if you are migrating pages from an old website, or are changing the directory of your WordPress installation. |
| 15 |
|
| 16 |
And it's 100% free! |
| 17 |
|
| 18 |
New features include: |
| 19 |
|
| 20 |
* 404 error monitoring - captures a log of 404 errors and allows you to easily map these to 301 redirects |
| 21 |
* Custom 'pass-through' redirections allowing you to pass a URL through to another page, file, or website. |
| 22 |
* Full logs for all redirected URLs |
| 23 |
* All URLs can be redirected, not just ones that don't exist |
| 24 |
* Redirection methods - redirect based upon login status, redirect to random pages, redirect based upon the referrer! |
| 25 |
|
| 26 |
Existing features include: |
| 27 |
|
| 28 |
* Automatically add a 301 redirection when a post's URL changes |
| 29 |
* Manually add 301, 302, and 307 redirections for a WordPress post, or for any other file |
| 30 |
* Full regular expression support |
| 31 |
* Apache .htaccess is not required - works entirely inside WordPress |
| 32 |
* Redirect index.php, index.html, and index.htm access |
| 33 |
* Redirection statistics telling you how many times a redirection has occurred, when it last happened, who tried to do it, and where they found your URL |
| 34 |
* Fully localized |
| 35 |
|
| 36 |
Redirection is available in: |
| 37 |
|
| 38 |
* English |
| 39 |
* French by Oncle Tom |
| 40 |
* Hebrew by Rami |
| 41 |
* Spanish by Juan |
| 42 |
* Simplified Chinese by Sha Miao |
| 43 |
* Catalan by Robert Bu |
| 44 |
* Japanese by Naoko McCracken |
| 45 |
* Hindi by Ashish |
| 46 |
* Russian by Grib |
| 47 |
* Bahasa Indonesia by Septian Fujianto |
| 48 |
* German by Fabian Schulz |
| 49 |
* Italian by Raffaello Tesi |
| 50 |
* Ukrainian by WordPress plugins Ukraine |
| 51 |
* Polish by Kuba Majerczyk |
| 52 |
* Arabic by Jerry John |
| 53 |
* Brazilian Portuguese by Pedro Padron |
| 54 |
* Dutch by Marlon Navas, Pieter Carette, and Bart Kummel |
| 55 |
* Hungarian by daSSad and Szépe Viktor |
| 56 |
* Turkish by Fatih Cevik |
| 57 |
* Romanian by InboxTranslations |
| 58 |
* Greek by Stefanos Kofopoulos |
| 59 |
* Belarusian by Alexander Ovsov |
| 60 |
* Czech by Martin Jurica |
| 61 |
* Danish by Rasmus Himmelstrup |
| 62 |
* Persian by Danial Hatami |
| 63 |
|
| 64 |
Please submit bugs and patches to https://github.com/johngodley/redirection |
| 65 |
|
| 66 |
== Installation == |
| 67 |
|
| 68 |
The plugin is simple to install: |
| 69 |
|
| 70 |
1. Download `redirection.zip` |
| 71 |
1. Unzip |
| 72 |
1. Upload `redirection` directory to your `/wp-content/plugins` directory |
| 73 |
1. Go to the plugin management page and enable the plugin |
| 74 |
1. Configure the options from the `Manage/Redirection` page |
| 75 |
|
| 76 |
You can find full details of installing a plugin on the [plugin installation page](http://urbangiraffe.com/articles/how-to-install-a-wordpress-plugin/). |
| 77 |
|
| 78 |
Full documentation can be found on the [Redirection](http://urbangiraffe.com/plugins/redirection/) page. |
| 79 |
|
| 80 |
== Frequently Asked Questions == |
| 81 |
|
| 82 |
= Why would I want to use this instead of .htaccess? = |
| 83 |
|
| 84 |
Ease of use. Redirections are automatically created when a post URL changes, and it is a lot easier to manually add redirections than to hack around a .htaccess. You also get the added benefit of being able to keep track of 404 errors. |
| 85 |
|
| 86 |
= What is the performance of this plugin? = |
| 87 |
|
| 88 |
The plugin works in a similar manner to how WordPress handles permalinks and should not result in any noticeable slowdown to your site. |
| 89 |
|
| 90 |
== Upgrade Notice == |
| 91 |
|
| 92 |
= 2.3.3 = |
| 93 |
* Full WordPress 3.5+ compatibility! Note that this contains database changes so please backup your data. |
| 94 |
|
| 95 |
= 2.4 = |
| 96 |
* Another database change. Please backup your data |
| 97 |
|
| 98 |
== Changelog == |
| 99 |
|
| 100 |
= 2.6.3 = |
| 101 |
* Use React on log and 404 pages |
| 102 |
* Fix log option not saving 'never' |
| 103 |
* Additional check for auto-redirect from root |
| 104 |
* Fix delete plugin button |
| 105 |
* Improve IP detection for Cloudflare |
| 106 |
|
| 107 |
= 2.6.2 = |
| 108 |
* Set auto_detect_line_endings when importing CSV |
| 109 |
* Replace options page with a fancy React version that looks exactly the same |
| 110 |
|
| 111 |
= 2.6.1 = |
| 112 |
* Fix CSV export merging everything into one line |
| 113 |
* Fix bug with HTTP codes not being imported from CSV |
| 114 |
* Add filters for source and target URLs |
| 115 |
* Add filters for log and 404s |
| 116 |
* Add filters for request data |
| 117 |
* Add filter for monitoring post permalinks |
| 118 |
* Fix export of 404 and logs |
| 119 |
|
| 120 |
= 2.6 = |
| 121 |
* Show example CSV |
| 122 |
* Allow regex and redirect code to be set on import |
| 123 |
* Fix a bunch of database installation problems |
| 124 |
|
| 125 |
= 2.5 = |
| 126 |
* Fix no group created on install |
| 127 |
* Fix missing export key on install |
| 128 |
* Add 308 HTTP code, props to radenui |
| 129 |
* Fix imported URLs set to regex, props to alpipego |
| 130 |
* Fix sorting of URLs, props to JordanReiter |
| 131 |
* Don't cache 307s, props to rmarchant |
| 132 |
* Abort redirect exit if no redirection happened, props to junc |
| 133 |
|
| 134 |
= 2.4.5 = |
| 135 |
* Ensure cleanup code runs even if plugin was updated |
| 136 |
* Extra sanitization of Apache & Nginx files, props to Ed Shirey |
| 137 |
* Fix regex bug, props to romulodl |
| 138 |
* Fix bug in correct group not being shown in dropdown |
| 139 |
|
| 140 |
= 2.4.4 = |
| 141 |
* Fix large advanced settings icon |
| 142 |
* Add text domain to plugin file, props Bernhard Kau |
| 143 |
* Better PHP7 compatibility, props to Ohad Raz |
| 144 |
* Better Polylang compatibility, props to imrehg |
| 145 |
|
| 146 |
= 2.4.3 = |
| 147 |
* Bump minimum WP to 4.0.0 |
| 148 |
* Updated German translation, props to Konrad Tadesse |
| 149 |
* Additional check when creating redirections in case of bad data |
| 150 |
|
| 151 |
= 2.4.2 = |
| 152 |
* Add Gulp task to generate POT file |
| 153 |
* Fix a problem with duplicate positions in the redirect table, props to Jon Jensen |
| 154 |
* Fix URL monitor not triggering |
| 155 |
* Fix CSV export |
| 156 |
|
| 157 |
= 2.4.1 = |
| 158 |
* Fix error for people with an unknown module in a group |
| 159 |
|
| 160 |
= 2.4 = |
| 161 |
* Reworked modules now no longer stored in database |
| 162 |
* Nginx module (experimental) |
| 163 |
* View .htaccess/Nginx inline |
| 164 |
* Beginnings of some unit tests! |
| 165 |
* Fix DB creation on activation, props syntax53 |
| 166 |
* Updated Japanese locale, props to Naoko |
| 167 |
* Remove deprecated like escaping |
| 168 |
|
| 169 |
= 2.3.16 = |
| 170 |
* Fix export options not showing for some people |
| 171 |
|
| 172 |
= 2.3.15 = |
| 173 |
* Fix error on admin page for WP 4.2 |
| 174 |
|
| 175 |
= 2.3.14 = |
| 176 |
* Remove error_log statements |
| 177 |
* Fix incorrect table name when exporting 404 errors, props to brazenest/synchronos-t |
| 178 |
|
| 179 |
= 2.3.13 = |
| 180 |
* Split admin and front-end code out to streamline the loading a bit |
| 181 |
* Fix bad groups link when viewing redirects in a group, props to Patrick Fabre |
| 182 |
* Improved plugin activation/deactivation and cleanup |
| 183 |
* Improved log clearing |
| 184 |
|
| 185 |
= 2.3.12 = |
| 186 |
* Persian translation by Danial Hatami |
| 187 |
* Fix saving a redirection with login status, referrer, and user agent |
| 188 |
* Fix problem where deleting your last group would cause Redirection to only show an error |
| 189 |
* Add limits to referrer and destination in the logs |
| 190 |
* Redirect title now shows in the main list again. The field is hidden when editing until toggled |
| 191 |
* Fix 'bad nonce' error, props to Jonathan Harrell |
| 192 |
* Remove old WP code |
| 193 |
|
| 194 |
= 2.3.11 = |
| 195 |
* Fix log cleanup options |
| 196 |
* More space when editing redirects |
| 197 |
* Better detection of regex when importing |
| 198 |
* Restore export options |
| 199 |
* Fix unnecessary protected |
| 200 |
|
| 201 |
= 2.3.10 = |
| 202 |
* Another compatibility fix for PHP < 5.3 |
| 203 |
* Fix incorrect module ID used when creating a group |
| 204 |
* Fix .htaccess duplication, props to Jörg Liwa |
| 205 |
|
| 206 |
= 2.3.9 = |
| 207 |
* Compatibility fix for PHP < 5.3 |
| 208 |
|
| 209 |
= 2.3.8 = |
| 210 |
* Fix plugin activation error |
| 211 |
* Fix fatal error in table nav, props to spacedmonkey |
| 212 |
|
| 213 |
= 2.3.7 = |
| 214 |
* New redirect page to match WP style |
| 215 |
* New module page to match WP style |
| 216 |
* Configurable permissions via redirection_role filter, props to RodGer-GR |
| 217 |
* Fix saving 2 month log period |
| 218 |
* Fix importer |
| 219 |
* Fix DB creation to check for existing tables |
| 220 |
|
| 221 |
= 2.3.6 = |
| 222 |
* Updated Italian translation, props to Raffaello Tesi |
| 223 |
* Updated Romanian translation, props to Flo Bejgu |
| 224 |
* Simplify logging options |
| 225 |
* Fix log deletion by search term |
| 226 |
* Export logs and 404s to CSV |
| 227 |
|
| 228 |
= 2.3.5 = |
| 229 |
* Default log settings to 7 days, props to Maura |
| 230 |
* Updated Danish translation thanks to Mikael Rieck |
| 231 |
* Add per-page screen option for log pages |
| 232 |
* Remove all the corners |
| 233 |
|
| 234 |
= 2.3.4 = |
| 235 |
* Fix escaping of URL in admin page |
| 236 |
|
| 237 |
= 2.3.3 = |
| 238 |
* Fix PHP strict, props to Juliette Folmer |
| 239 |
* Fix RSS entry date, props to Juliette |
| 240 |
* Fix pagination |
| 241 |
|
| 242 |
= 2.3.2 = |
| 243 |
* WP 3.5 compatibility |
| 244 |
* Fix export |
| 245 |
|
| 246 |
= 2.3.0 = |
| 247 |
* Remove 404 module and move 404 logs into a separate option |
| 248 |
* Add Danish translation, thanks to Rasmus Himmelstrup |
| 249 |
|
| 250 |
= 2.2.14 = |
| 251 |
* Clean up log code, using WP_List_Table to power it |
| 252 |
* Update Hungarian translation |
| 253 |
|
| 254 |
= 2.2.13 = |
| 255 |
* Fix some broken links in admin pages |
| 256 |
|
| 257 |
= 2.2.12 = |
| 258 |
* Cleanup some XSS issues |
| 259 |
|
| 260 |
= 2.2.11 = |
| 261 |
* Add Lithuanian |
| 262 |
* Add Belarusian |
| 263 |
* Add Czech |
| 264 |
* Fix order of redirects, thanks to Nicolas Hatier |
| 265 |
|
| 266 |
= 2.2.10 = |
| 267 |
* Fix XSS in referrers log |
| 268 |
|
| 269 |
= 2.2.9 = |
| 270 |
* Fix XSS in admin menu |
| 271 |
* Update Russian translation, thanks to Alexey Pazdnikov |
| 272 |
|
| 273 |
= 2.2.8 = |
| 274 |
* Add Romanian translation, thanks to Alina |
| 275 |
* Add Greek, thanks to Stefanos Kofopoulos |
| 276 |
|
| 277 |
= 2.2.7 = |
| 278 |
* Better database compatibility |
| 279 |
|
| 280 |
= 2.2.6 = |
| 281 |
* Remove warning from VaultPress |
| 282 |
|
| 283 |
= 2.2.5 = |
| 284 |
* Add Turkish translation, thanks to Fatih Cevik |
| 285 |
* Fix search box |
| 286 |
* Fix 410 error code |
| 287 |
* Fix DB errors when MySQL doesn't auto-convert data types |
| 288 |
|
| 289 |
= 2.2.4 = |
| 290 |
* Add Hungarian translation, thanks to daSSad |
| 291 |
|
| 292 |
= 2.2.3 = |
| 293 |
* Remove debug from htaccess module |
| 294 |
|
| 295 |
= 2.2.2 = |
| 296 |
* Fix encoding of JS strings |
| 297 |
|
| 298 |
= 2.2.1 = |
| 299 |
* More Dutch translation |
| 300 |
* Use fgetcsv for CSV importer - better handling |
| 301 |
* Allow http as URL parameter |
| 302 |
|
| 303 |
= 2.2 = |
| 304 |
* Add Dutch translation |
| 305 |
* Props to Ben Noordhuis for a patch |
| 306 |
* WordPress 2.9+ only - cleaned up all the old cruft |
| 307 |
* Better new-install process |
| 308 |
* Upgrades from 1.0 of Redirection no longer supported |
| 309 |
* Optimized DB tables |
| 310 |
|
| 311 |
= 2.1.29 = |
| 312 |
* Fix problem with custom post types auto-redirecting (click on 'groups' and then 'modified posts' and clear any entries for '/' from your list) |
| 313 |
|
| 314 |
= 2.1.28 = |
| 315 |
* Brazilian Portuguese translation |
| 316 |
|
| 317 |
= 2.1.27 = |
| 318 |
* Arabic translation |
| 319 |
|
| 320 |
= 2.1.26 = |
| 321 |
* WP 3.0 compatibility |
| 322 |
|
| 323 |
= 2.1.25 = |
| 324 |
* Fix deep slashes |
| 325 |
|
| 326 |
= 2.1.24 = |
| 327 |
* Add Ukrainian translation |
| 328 |
* Add Polish translation |
| 329 |
* Database optimisation |
| 330 |
|
| 331 |
= 2.1.23 = |
| 332 |
* Add Bahasa Indonesian translation |
| 333 |
* Add German translation |
| 334 |
* Add patch to disable logs (thanks to Simon Wheatley!) |
| 335 |
|
| 336 |
= 2.1.22 = |
| 337 |
* Pre WP2.8 compatibility fix |
| 338 |
|
| 339 |
= 2.1.21 = |
| 340 |
* Fix #620 |
| 341 |
* Add Russian translation |
| 342 |
|
| 343 |
= 2.1.20 = |
| 344 |
* Fix for some users with problems deleting redirections |
| 345 |
|
| 346 |
= 2.1.19 = |
| 347 |
* Add Hindi translation |
| 348 |
* Fix some ajax |
| 349 |
|
| 350 |
= 2.1.18 = |
| 351 |
* Fix module deletion |
| 352 |
|
| 353 |
= 2.1.17 = |
| 354 |
* Log JS fixes |
| 355 |
|
| 356 |
= 2.1.16 = |
| 357 |
* Fix group edit and log add entry |
| 358 |
|
| 359 |
= 2.1.15 = |
| 360 |
* Use WP Ajax |
| 361 |
* Add Japanese |
| 362 |
|
| 363 |
= 2.1.14 = |
| 364 |
* Fix #457 |
| 365 |
* Add #475, #427 |
| 366 |
* Add Catalan translation. |
| 367 |
* WP2.8 compatibility |
| 368 |
|
| 369 |
= 2.1.13 = |
| 370 |
* Add Spanish and Chinese translation |
| 371 |
|
| 372 |
= 2.1.12 = |
| 373 |
* Add icons |
| 374 |
* Disable category monitoring |
| 375 |
|
| 376 |
= 2.1.11 = |
| 377 |
* Errors on some sites |
| 378 |
|
| 379 |
= 2.1.10 = |
| 380 |
* Missing localisations |
| 381 |
|
| 382 |
= 2.1.9 = |
| 383 |
* Fix 'you do not permissions' error on some non-English sites |
| 384 |
|
| 385 |
= 2.1.8 = |
| 386 |
* Fix category change 'quick edit' |
| 387 |
|
| 388 |
= 2.1.7 = |
| 389 |
* Fix #422, #426 |
| 390 |
|
| 391 |
= 2.1.6 = |
| 392 |
* Redirection loops |
| 393 |
|
| 394 |
= 2.1.5 = |
| 395 |
* Fix #366, #371, #378, #390, #400. |
| 396 |
* Add #370, #357 |
| 397 |
|
| 398 |
= 2.1.4 = |
| 399 |
* RSS feed token |
| 400 |
|
| 401 |
= 2.1.3 = |
| 402 |
* Re-enable import feature |
| 403 |
|
| 404 |
= 2.1.2 = |
| 405 |
* Minor button changes |
| 406 |
|
| 407 |
= 2.1.1 = |
| 408 |
* Force JS cache |
| 409 |
* Fix log deletion |
| 410 |
|
| 411 |
= 2.1 = |
| 412 |
* Change to jQuery |
| 413 |
* Nonce protection |
| 414 |
* Fix #352, #353, #339, #351 |
| 415 |
* Add #358, #316. |
| 416 |
|
| 417 |
= 2.0.12 = |
| 418 |
* Disable category monitor in 2.7 |
| 419 |
|
| 420 |
= 2.0.11 = |
| 421 |
* Hebrew translation |
| 422 |
|
| 423 |
= 2.0.10 = |
| 424 |
* Fix small issues in display with WP 2.7 |
| 425 |
|
| 426 |
= 2.0.9 = |
| 427 |
* Fix delete redirects |
| 428 |
|
| 429 |
= 2.0.8 = |
| 430 |
* Refix log delete |
| 431 |
|
| 432 |
= 2.0.7 = |
| 433 |
* Fix incorrect automatic redirection with static home pages |
| 434 |
|
| 435 |
= 2.0.6 = |
| 436 |
* Support for wp-load.php |
| 437 |
|
| 438 |
= 2.0.5 = |
| 439 |
* Fix #264 |
| 440 |
|
| 441 |
= 2.0.4 = |
| 442 |
* get_home_path seems not be available for some people |
| 443 |
|
| 444 |
= 2.0.3 = |
| 445 |
* Fix #248 |
| 446 |
* Update plugin.php to better handle odd directories |
| 447 |
|
| 448 |
= 2.0.2 = |
| 449 |
* Correct DB install |
| 450 |
* Fix IIS problem |
| 451 |
|
| 452 |
= 2.0.1 = |
| 453 |
* Install defaults when no existing redirection setup |
| 454 |
|
| 455 |
= 2.0 = |
| 456 |
* New version |
| 457 |
|