php redirect / WordPress

The customer had an old non-wordpress site which had a folder called rsvp which did a redirect to a page in the old site.

In the new WordPress site, the equivalent location is this:

So in the folder rsvp  on the server I put this index.php

// redirect to new Rain1 WordPress site RSVP page

There is an htaccess page that (purposely) has this:

ErrorDocument 404

If I go to, I get the new site main page, NOT the desired page.


What is the correct way to do this?

Richard KortsAsked:
Who is Participating?
Jason C. LevineNo oneCommented:
At the root

So that's why it doesn't work.  The WordPress rewrite rules are firing on /rsvp/ and that generates a 404 error since there is not a matching WordPress page/post with that slug.  It never gets past that point and into your index page with the header command.

Edit .htaccess and add the following line above the WordPress rewrite block:

Redirect 301 /rsvp/

Open in new window

As long as that is above the WordPress rewrites, it should send users to the correct place.
Jason C. LevineNo oneCommented:
Where is the .htaccess file with the WordPress rewrite rules located?
Richard KortsAuthor Commented:
At the root,

Richard KortsAuthor Commented:
Perfect. I thought it would involve a change to .htaccess.


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.