Link to home
Start Free TrialLog in
Avatar of Richard Korts
Richard KortsFlag for United States of America

asked on

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: http://rain1.com/new-site/customer-support/confirm-appointment/

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

<?php
// redirect to new Rain1 WordPress site RSVP page
header("Location: www.rain1.com/new-site/customer-support/confirm-appointment/");
exit;
?>

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

ErrorDocument 404 http://www.rain1.com/new-site

If I go to rain1.com/rsvp, I get the new site main page, NOT the desired page.

Why?

What is the correct way to do this?

Thanks
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Where is the .htaccess file with the WordPress rewrite rules located?
Avatar of Richard Korts

ASKER

At the root, www.rain1.com

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Perfect. I thought it would involve a change to .htaccess.

Thanks,

Richard