Redirect entire Wordpress Website to index page of New domain

  • Answered
I need to redirect all my pages and posts of "" to index page of "" using .htaccess, I tried using the code: # BEGIN WordPress RewriteEngine On RewriteCond %{HTTP_HOST} ^$ [OR] RewriteCond %{HTTP_HOST} ^$ RewriteRule (.*)$$1 [R=301,L] # END WordPress But it is redirecting to each page( ie, to ) but i need a code which can redirect all pages to index page of newdomain ( to ) . Please advice me what code i have to use in .htaccess file. Thanks Jinsy
Hello JinsyAbhilash, You could do this by performing a 301 redirect which is what you attempted to do but there is an easier way. Doing it via the guide I provided will redirect any url from to Kindest Regards, TJ Edens