WordPress.org

Plugin Directory

Changeset 377345


Ignore:
Timestamp:
04/26/11 11:53:14 (7 years ago)
Author:
ollybenson
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • url-forwarding/trunk/readme.txt

    r377337 r377345  
    44Tags: url forwarding, redirecting, legacy pages, campaign, url 
    55Tested up to: 3.1.1 
    6 Stable: trunk  
     6Stable tag: trunk  
    77 
    88Redirect/forward urls to a particular page or post within Wordpress (eg a legacy URL) 
     
    1010== Description == 
    1111 
    12 The plugin redirects legacy URLs from old websites that have been converted into a Wordpress site. It obviously can also be used for other redirecting, eg having a short URL that directs to a page as part of a campaign. 
     12 
     13The plugin redirects legacy URLs a previous version of a websites that has since been converted into a Wordpress site. It can also be used for other redirecting, eg having a short URL that directs to a page as part of a campaign. 
     14 
     15For example: 
     16 
     17http://www.example.com/old-page.html 
     18 
     19Can be directed to: 
     20 
     21http://www.example.com/2011/04/25/new-page.html 
     22 
     23Simply by adding 'old-page.html' as a custom field when editing new-page within Wordpress. 
    1324 
    1425Every time a 404 page is called, the Legacy URL plugin checks the database and if it find a legacy-url value that exactly matches the URL it will redirect to the new page. 
     
    1829== Installation == 
    1930 
    20 This section describes how to install the plugin and get it working. 
    21  
    22 e.g. 
    23  
    24 1. All you need to do is install and enable the plugin, 
     311. Install and enable the plugin, 
    25321. Add a custom field in the post or page with the name *legacy-url* and the value as the URL excluding the domain name. So if the old page is *http://www.example.com/this-is-an-old-page.html*, the value of the custom field should be *this-is-an-old-page.html*. 
    26 1. Add the code: `doUrlFowarding();` as the first line (after the commented-out metadata) of the 404 page in your theme.  In the TwentyTen theme this is 404.php and `doUrlForwarding();` would go before the `get_header();` command. 
     331. Add the code: `doUrlFowarding();` as the first line (after any commented-out metadata) of the 404 page in your theme.  In the TwentyTen theme this is 404.php and `doUrlForwarding();` would go before the `get_header();` command. 
    2734 
    2835== Things to note == 
Note: See TracChangeset for help on using the changeset viewer.