WordPress index.php seems to perform unwanted redirect 301

It sounds like both Home URL and Site URL for your blog are set to http://test.blog, while your server accepts both http://test.blog and http://www.test.blog. If you access the latter, WordPress will redirect you because of the mismatch. You might be able to set the Home URL and Site URL dynamically in your wp-config.php like this: … Read more

How to fix too many redirects when enabling SSL for site?

Using a redirect from your web server isn’t the best solution in my opinion. Instead, why not fix directly the content of your database? (using https:// instead of http:// everywhere? You could do that using a WordPress plugin such as WP Migrate DB or the command line tool WP-CLI. Using the plugin option (WP Migrate … Read more

Prevent wordpress autoredirect

Not really a WP-specific question, but I’ll help you out. That regex will match ex.com/helloworld/ but not ex.com/helloworld. To handle both you’d want RewriteRule ^helloworld/?$ /careers/helloworld-recruiting/ [L,R=301] The question mark makes the preceding token optional and the single slash rather than double in the rewritten URL makes it relative to the root.