I need to redirect all my wordpress pages, category pages(I got like 10-20K pages) to redirect to my home page..How to do this please..Is there any plugin to do this?
Hello, Keep in mind that Redirecting all Pages to Homepage will Effect your SEO and Links Juice... If you are sure about what you want to do.. you can use Htaccess : RewriteEngine On RewriteCond %{REQUEST_URI} !=/index.php RewriteRule .* /index.php Goodluck
You might be better off just putting a banner on top of each page saying something in bright red: FOR THIS REASON CLICK HERE TO BE TAKEN TO THE HOME PAGE... then the SEO link juice will not be destroyed and people can still click and go there.
I tried this but didn't work for me.. And I'm not care about SEO..All I need is to redirect all my pages to home page or even to a new domain.
Just paste following code to your header.php, <?php if (!is_home() && !is_front_page()) { wp_redirect( home_url(), 301 ); exit; } ?> PHP: before </head> tag.