how to solve Error: Exceeded maxRedirects. Probably stuck in a redirect code example

Example 1: request exceeded the limit of 10 internal redirects due to probable configuration error

# BEGIN WordPress<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]</IfModule># END WordPress

Example 2: request exceeded the limit of 10 internal redirects due to probable configuration error

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');