301 Redirect in Wordpress not working in htaccess

by JJ100   Last Updated July 25, 2019 20:08 PM

I've tried multiple blocks of code and none of them work, i.e.:

RewriteEngine on
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

and

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]

among others. I just want to redirect from old site to new site and keep the url path the same + seo juice. What am I missing? Thanks.



Related Questions



PHP - redirect https to http and www to non-www

Updated November 20, 2017 18:08 PM


301 redirect not working through .htaccess

Updated March 29, 2015 06:02 AM