The MU forums have moved to WordPress.org

301 Redirect to individual pages using index.php (1 post)

  1. cynthea
    Member
    Posted 15 years ago #

    Hi everyone, I am trying to figure out the php code I would need to put in my index.php file to redirect individual wordpress pages from an old domain to the matching page in the new domain.

    Here's an example of what I want to do:

    Redirect http://www.myolddomain.com/2008/05/23/292/this-is-the-post-title

    to

    http://www.mynewdomain.com/2008/05/23/292/this-is-the-post-title

    I am guessing that if I knew PHP, I would be able to write up some simple code and stick it at the top of my index.php file for my old site. Anyone know what that code might be? :)

About this Topic

  • Started 15 years ago by cynthea