Force 404 redirect to home?

A 404 should never be a redirect. A redirection status begins with 3, not with 4. You can either include the index.php (or home.php or front-page.php) in your 404.php or just remove the 404.php from your theme. Then WordPress will use the index.php.

My site is being redirected to itself

Are you using a combination of SSL (HTTPS) and non-SSL (HTTP) pages on the site? If so, you may be getting caught in a redirect loop due to some issues with either your .htaccess file, page caching or a configuration issue on your web host.

wp_redirect () doesn’t work in nginx?

It should not have worked on apache as well. wp_head is too late to make a redirect as there is already some output sent at that point and php will not send the http headers required for the redirection. You need to hook on wp_loaded or any other hook before output actually happens.

WP forwarding to wrong site address

You may have some problem with JavaScript on your website, with the hardcoded URLs. As I can see you are trying to create the test environment. This is good, and I like people creating the test environments. You need to go to through your code, JavaScript and PHP to seek for the hardcoded URLs. Also … Read more

Issue redirecting ‘blog’ to ‘news’ in WordPress using .htaccess

OK, so here’s the solution that works for me… <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^blog/(.*) news/$1 [L,R=301] </IfModule> # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Thanks again to @WebElaine for the input!

Redirect to page for KPI/marketing purpouses

Yes, you should use 301 redirects. There are quite a number of plugins that will do this. I would suggest trying a handful of different redirect plugins and seeing which one works best for your case. The main differences are that some will automatically include “/go/” at the beginning of the URL just to make … Read more