Fix WordPress Redirect Loop Problems

Published April 21, 2026

Fix WordPress Redirect Loop Problems

A redirect loop occurs when your browser bounces indefinitely between two URLs. WordPress redirect loops are usually caused by incorrect URL settings, HTTPS misconfiguration, or caching issues.

Types of WordPress Redirect Loops

Fix 1: Correct WordPress URL Settings

Go to Settings → General and ensure WordPress Address and Site Address match exactly, including the https:// prefix. Mismatched URLs cause redirect loops.

If you cannot access wp-admin, add these lines to wp-config.php:

define('WP_HOME', 'https://yourdomain.com');
define('WP_SITEURL', 'https://yourdomain.com');

Fix 2: Clear All Caches

Clear your caching plugin cache, browser cache, and CDN cache. Cached redirect rules persist after you fix the underlying issue.

Fix 3: Check HTTPS Configuration

If you recently installed an SSL certificate, add this to wp-config.php:

define('FORCE_SSL_ADMIN', true);
$_SERVER['HTTPS'] = 'on';

Fix 4: Deactivate Redirect Plugins

Redirection, 301 Redirects, and similar plugins can create loops. Deactivate them via FTP and check if the loop stops.

Fix 5: Review .htaccess

Conflicting redirect rules in .htaccess cause loops. Rename the file and regenerate it via Settings → Permalinks.