301 Redirect to individual pages using index.php (2 posts)

  1. cynthea
    Posted 8 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



    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? :)

  2. iridiax
    Posted 8 years ago #

    301 redirects are done in .htaccess.

Topic Closed

This topic has been closed to new replies.

About this Topic