0

I have a problem with Wordpress. I have custom type "review" and I migrate all its content into posts successfully. But I don't know how to redirect the old URL into new URL.

The old URL format: www.mysite.com/review/this-is-post

The new URL after migration into posts: www.mysite.com/this-is-post

How to make redirection from old URL into new URL? So, if visitor visit the old URL, they automatically redirect to new URL.

Thank you

0

Use a RedirectMatch in your .htaccess:

RedirectMatch Permanent ^/review/(.*) /$1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.