Set up Redirect in WordPress .htaccess File Aug 14, 2020 | WordPress RewriteEngine On Redirect 301 /xxx-old-post/ http://yoursite.com/xxx-new-post/ Adds a redirect in WordPress using the .htaccess file. Add this code snippet to the .htaccess file.