Redirection
| Download: | redirection.zip |
|---|---|
| Version: | 1.7.26 |
| Updated: | November 25, 2007 |
| Size: | 126.2 KB |
Support This Plugin!While this software is being provided free to use, it takes considerable time to develop and support. If you do find it particularly useful or want to request a feature then consider donating money as an incentive for me to carry on developing it. Thanks! |
|
| I have other plugins too! | |
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. This is particularly useful if you are migrating pages from an old website, or are changing the directory of your WordPress installation.
New features include:
- 404 error monitoring - captures a log of 404 errors and allows you to easily map these to 301 redirects
- RSS feed for 404 errors
- Custom 'pass-through' redirections allowing you to pass a URL through to another page, file, or website.
- Full logs for all redirected URLs
- All URLs can be redirected, including ones outside WordPress
- Redirection methods - redirect based upon login status, redirect to random pages, redirect based upon the referrer!
Existing features include:
- Automatically add a 301 redirection when a post's URL changes
- Manually add 301, 302, and 307 redirections for a WordPress post, or for any other file
- Full regular expression support
- Apache .htaccess is not required - works entirely inside WordPress
- Strip or add www to all your WordPress pages
- Redirect index.php, index.html, and index.htm access
- 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
- Fully localized
NOTE: If you are upgrading from a previous version then please visit the Redirection options page at least once.
Get the Flash Player to see this movie.
Version History
- 1.7.26 - Fix RSS update and URL encoding problem
- 1.7.25 - Fix database problem on some hosts
- 1.7.24 - Stop problems with mod_security
- 1.7.23 - Stop FTP log files being picked up, RSS 404 log
- 1.7.22 - Allow carats in regex patterns, another FastCGI workaround
- 1.7.21 - Fix activation bug
- 1.7.20 - Workaround for the FastCGI workaround. Hide canonical options for WP2.3
- 1.7.19 - Better database installation, better auto-generation
- 1.7.18 - Add auto-generation for source URL
- 1.7.17 - Add option to disable 404 logs
Installation
Installation is just like any WordPress plugin:
- Download redirection.zip
- Unzip
- Upload to
redirectiondirectory to/wp-content/pluginson your server - Activate the plugin
- Configure options from Manage » Redirection
Note that you must have a permalinks structure setup through WordPress.
You can find full details of installing a plugin on the plugin installation page.
Usage
A redirection is a way for the web server to tell the browser that a particular page is no longer at the current address, and to indicate where it should go to find the new page. The Redirection plugin allows you to create several types of redirections:
- 301 - Permanent redirection and the client should use the new URL in the future
- 302 - Page has been temporaliy moved but the client should continue to use the old URL
- 307 - A HTTP 1.1 version of 302 to disambiguate certain conditions
In addition you can also create specific 404 pages, as well as 'pass-through' pages.
A redirection is created from the Redirection screen in the administration panel:
You can add as many redirections as you want, and redirections will be displayed in a colourful list:
This list can be sorted by any attribute, and can even be manually arranged by dragging and dropping the type. You can save the current order by pressing the 'save order' link. Redirections are processed according to their position, so this will be useful should you require a specific order. You may get a performance benefit by putting your most used redirections at the start of the list.
Pass-Through
Pass-through pages provide the same features as Apache's mod_rewrite, but without requiring either Apache or mod_rewrite, and without requiring .htaccess files. A pass-through URL is a page where the content is retrieved from some other location, but the URL does not change. This other location can be another WordPress post, a file, or even another website.
While you can specify another website as the target for a pass-through page, it should be noted that the contents for this are retrieved by your server, and it is likely that your host will not be very appreciative.
Regular Expressions
Regular expressions can be enabled for all redirections and allow you to specify a pattern, rather than an exact URL. A pattern has the potential to match more than one URL, and so regular expressions give you the ability of reducing a large set of redirected URLs to a small number of patterns.
Explaining regular expressions is beyond the scope of this documentation, and you can find more details elsewhere on the internet.
A couple of examples:
/blog/(.*) => /$1
This will match any URL that starts with /blog/, and will redirect it to the same URL but without /blog/. For example, /blog/2006/10/01/mypost will be redirected to /2006/10/01/mypost.
/2006/month_\d+/(.*) => /2006/$1/$2
This will match any URL that starts /2006/month_, and is then followed by a number. This will be redirected to the same URL, but without month_. For example, /2006/month_1/something will be redirected to /2006/1/something.
To replace a single dash in a URL with a space:
/tags/(.*?)-(.*?) => /tags/$1%20$2
Redirection Methods
Redirection provides ways of adding conditions into a redirection:
- Simple redirection - no special conditions
- Based on login status - redirect to one URL if logged in, and another URL if not
- Based on referrer - redirect to a URL based upon the referring page
- One of several URLs - specify a list of URLs and get redirected to one chosen at random
- Random WordPress post - redirect a randomly chosen post
Redirecting based on referrer
For example, you want to redirect users for /feed/ to /feed2/, unless the user comes from Feedburner. To achieve this you must first create a new redirection item using 'redirect based on referrer'. Once the redirection has been created you can edit it and change the details as follows:
- Source URL -
/feed/ - Referrer -
^feedburner.*$ - Referrer regex - yes
- URL not from referrer -
/feed2/
This sets up a rule whereby if the referrer does not match then the user is redirected to /feed2/, otherwise no redirection occurs.
Logs & 404 errors
Every redirected URL is recorded, along with data about the user that visited it. You can view these logs from the administration pages.
Further log details can be obtained by clicking the date of the log entry. On the 404 error page you can also click the plus icon to copy the URL, ready to create a new redirection.
Options
The options page allows you to configure special features of the Redirection plugin:
- Post slug changes - Automatically create a redirection when a post's URL changes
index.php/index.html- Automatically stripindex.phpandindex.htmlfrom URLs- Root domain - Automatically remove or add '
www' to a URL
Developers
Redirection exposes two WordPress filters, allowing you to add additional redirection events through your own plugins:
redirection_first- Passed the current URL before any other redirectionsredirection_last- Passed the current URL after all other redirections
You can manually redirect, or you can return a Redirection_Item (examination of the code should be sufficient information).
Support
Please direct all support questions to the Redirection support forum. Any support questions left on this page may not be answered.
Bugs & New Features
A full list of all bugs can be found in the Redirection issue tracker.
| Date | Current outstanding bugs | Status |
|---|---|---|
| 23 Jul 2008 | Failed redirection in IE 7 & Safari |
A full list of all requested features can be found in the Redirection feature tracker.
| Date | Current requested features |
|---|---|
| 12 Jul 2008 | Redirection log is massive |
Help me to save time by reading these instructions!
Please report bugs in the Redirection issue tracker.
Please make feature suggestions in the Redirection feature tracker.
Please direct all support questions to the Redirection support forum.






Comments (page 38 of 38)
Jul 23, 2008 1:23 pm
Hi,
Thanks for your plugin. It gives me hope that maybe with a little guidance I can get through this! :-/
I'm just moving to a new host. Formerly my WP was a blog off my main directory like this: http://domain.com/blog/
I set it up the same way at my new host. Then I moved index.php and .htaccess into my root directory to access WP from my domain address http://tsiyon.org. That all worked.
HOWEVER, I'm needing to redirect a million urls from domain.com/blog/whatever to domain.com/whatever
This is overwhelming. Above I noticed this code can solve the problem: /blog/(.*) => /$1
This is all over my head. Can you please give me the version for dummies on how exactly I enter that into your plugin to get the desired result?
Any other suggestions are more than welcome.
Thanks, Eliyahu
http://www.tsiyon.org
Jul 23, 2008 6:39 am
This has replaced a complicated htaccess file i was using to redirect pages many thanks
Jul 15, 2008 10:54 pm
Sigh. I just updated to this redirection and now new redirections do not work. Website is http://garlinggauge.com
Trying to redirect:
http://garlinggauge.com/2008/07/15/obamas-global-strategy/
to
http://www.realclearpolitics.com/articles/2008/07/a_new_strategy_for_a_new_world.html
Politics aside, this is frustrating, as no new redirects work. Any ideas?
Thank you.
Jul 15, 2008 5:42 pm
Анализ игры - Бесплатная информация о системе игры в интернет казино. Вы узнаете, как выиграть в интернет казино. Вы будете играючи зарабатывать 50 $ ежедневно. Можете начать уже сегодня! казино онлайн, казино метелица, набор покера, эротический покер
Jul 14, 2008 12:00 pm
This is weird.
One blog install of WP 2.5.1, Redirection works flawlessly. (note: this is a *new* install)
Another site which I've been using Redirection on for quite some time, after upgrading to 2.5.1, it completely fails. I tried deleting the plugin through the interface, going in and dropping anything from the _options table related to Redirection, even tried deleting the plugin and then re-uploading the plugin.
Problem? It loads just fine, but when I try to Add a new redirect, it tries to adds it, then just fails. It doesn't give an error, it just doesn't add it. It continues to say "You have no redirections" even after trying to add new ones.
thoughts?
Pings & Trackbacks
24hblog.net, 2aw.org, 3th.be, 69.89.31.120, InternetMarketingCampus.com, ahtim.com, akeller.eu, alosblog.com, alvinwoon.com, ambiencemedia.mav.bz, archgfx.net, bbunker.com, beinstantplatinum.com, birosketchbook.com, blog-op.com, blog.2i2j.com, blog.aplicacionesweb.cl, blog.bsdos.cn, blog.cfrq.net, blog.collinsinternet.com, blog.gonz0.com.ar, blog.gslin.org, blog.heick.nu, blog.moskjaer.dk, blog.patrickkempf.de, blog.qqss5.cn, blog.urbanmainframe.com, blogblogblog.ws, bloghelper.is-there.net, blogmunch.com, blogstrokes.com, carlmoeller.com, carrero.es, chenjinghua.net, computer-acquisti.com, computer-vet.com, contents-magic.com, cyocyo.biz, daibin.info, davefleet.com, david.scatigna.it, diggin.org, disavian.no-ip.info, distantdaily.com, diybase.org, dogmap.jp, foliovision.com, forum.hostican.com, francescogavello.it, geoffjon.s423.sureserver.com, gfmorris.com, goomy.insanegb.com, gouwukuang.cqmmgo.com, grafikdesign.wordpress.com, hackspot.gotdns.com, icxdesign.com, idiigo.com, imknight.net, informaticanetblog.org, internetgeeza.com, jasonpenney.net, joakimandersson.se, joeymuller.com, katsuwo1.wordpress.com, kinshuksunil.com, macamour.com, madebyglowworm.com, marketingvillage.biz, me.quasidot.com, mehook.cn, metaphoria.splendidnoise.com, moiatblog.com, monetiweb.com, moswald.iirc.at, myliltools.com, n0tablog.wordpress.com, n2b.org, niklasblog.com, noirlecroi.com, nspeaks.com, onlinepresence.blogsailor.com, orrio.cn, perassi.org, photomatt.net, piggybankpie.com, plasticdreams.org, politeknikui.co.cc, rein.upnl.org, schraegschrift.de, seanhayes.name, sem123.wordpress.com.cn, semplanning.com, seo.cn58.net, sigt.net, skyphe.org, smartr.cn, starwish.tarhely.biz, strm.se, support.pressharbor.com, tbotcotw.com, techathand.net, tecnologia.blogsya.net, thesocialagent.com, vernfong.com, wang-biao.cn, web2.0master.de, web20.berufswahl-online.de, webmaster.webphp.info, websitetology.com, whoisalejandro.com, wordpress.jdwebdev.com, wpfans.net.cn, wpthemesplugin.com, 0line.cn, 3rdbardo.com, 561560.cn, 9korn.com, aboutbaiaogu.com, affiliates4u.com, affiliatestuff.co.uk, alicejason.cn, andrestoledo.com, antinomian.com, austincounsel.com, bizmemowp.com, bjroi.cn, bloggeries.com, bloggr.it, blogmundi.com, blogohblog.com, blogpocket.com, blogtomic.com, bloog.com, bpmbulletin.com, cisday.org, colinzhu.com, comeacross.info, crawlspacemedia.com, cs-internet.de, cssnewbie.com, cydeweys.com, davidlouisedelman.com, daxdesai.com, ditii.com, elviscai.com, esoomllub.com, etcis.com, exaquo.com, filination.com, floogi.com, geekissimo.com, geekywood.com, gefledesign.se, ghusse.com, gregory-brine.com, groovyu.com, h4x3d.com, hatch.org, helnes.com, hostsay.cn, jenyburn.com, leoangela.com, linickx.com, makeuseof.com, mamablogga.com, manuelviloria.com, marie-lynn.com, matthiaspospiech.de, maxsailor.cn, mcbuzz.com, memwg.com, miriadz.com, mp3d.com.ar, net-entrepreneur.com, netpond.com, noneedforspam.com, nyseo.org.cn, optiniche.com, osxcn.com, pandasmic.com, pozycjonowanie-stron.zadarmo.biz.pl, ppcfool.com, puzich.com, qbencao.com, raoulpop.com, raproject.com, re-design.de, rehlaonline.com, reluo.net, resux.net, rgblog.net, rklau.com, ryanlineker.com, schester.com, seo-scene.de, seoabc.net, seoportal.pl, sepguy.com, shamoneymaker.com, skate58.cn, squareoak.com, stalkked.com, stefan-persson.se, stuartanderson.eu, suiji.net, sunfrogservices.com, sunshow.net, superchinois.net, terinea.co.uk, terzoocchio.org, thekidscollegefund.com, thenichestorebuilder.com, theosquest.com, thichnhac.com, turen007.com, tutoweb.com, u-g-h.com, venukb.com, vikingblogger.com, violinkid.com, webinventif.fr, webmais.com, webmaster-source.com, webmercial.dk, webproworld.com, webregard.de, webxmes.com, windowsobserver.com, wordpresscn.com, wordpressplugin.org, xn--rockbro-r2a.de, zambesc.com, yaley.blog.35.com
Leave a comment