title: WordPress wp-admin redirect to http://127.0.0.1/
body: <p>I have this problem: when I try to login to my WP dashboard (wp-admin), it redirects to 127.0.0.1. </p>
  
  <p>When I type <code>websitename.com/wp-admin</code> it show "Unable to connect".</p>
  
  <p>Can anyone help?</p>
  
  <p>My <code>.htaccess</code> file at the root of my site:</p>
  
  <pre><code># BEGIN All In One WP Security
  #AIOWPS_BLOCK_WP_FILE_ACCESS_START
  &lt;Files license.txt&gt;
      &lt;IfModule mod_authz_core.c&gt;
          Require all denied
      &lt;/IfModule&gt;
      &lt;IfModule !mod_authz_core.c&gt;
          Order deny,allow
          Deny from all
      &lt;/IfModule&gt;
  &lt;/Files&gt;
  &lt;Files wp-config-sample.php&gt;
      &lt;IfModule mod_authz_core.c&gt;
          Require all denied
      &lt;/IfModule&gt;
      &lt;IfModule !mod_authz_core.c&gt;
          Order deny,allow
          Deny from all
      &lt;/IfModule&gt;
  &lt;/Files&gt;
  &lt;Files readme.html&gt;
      &lt;IfModule mod_authz_core.c&gt;
          Require all denied
      &lt;/IfModule&gt;
      &lt;IfModule !mod_authz_core.c&gt;
          Order deny,allow
          Deny from all
      &lt;/IfModule&gt;
  &lt;/Files&gt;
  #AIOWPS_BLOCK_WP_FILE_ACCESS_END
  #AIOWPS_BASIC_HTACCESS_RULES_START
  &lt;Files .htaccess&gt;
      &lt;IfModule mod_authz_core.c&gt;
          Require all denied
      &lt;/IfModule&gt;
      &lt;IfModule !mod_authz_core.c&gt;
          Order deny,allow
          Deny from all
      &lt;/IfModule&gt;
  &lt;/Files&gt;
  ServerSignature Off
  LimitRequestBody 10240000
  &lt;Files wp-config.php&gt;
      &lt;IfModule mod_authz_core.c&gt;
          Require all denied
      &lt;/IfModule&gt;
      &lt;IfModule !mod_authz_core.c&gt;
          Order deny,allow
          Deny from all
      &lt;/IfModule&gt;
  &lt;/Files&gt;
  #AIOWPS_BASIC_HTACCESS_RULES_END
  #AIOWPS_PINGBACK_HTACCESS_RULES_START
  &lt;Files xmlrpc.php&gt;
      &lt;IfModule mod_authz_core.c&gt;
          Require all denied
      &lt;/IfModule&gt;
      &lt;IfModule !mod_authz_core.c&gt;
          Order deny,allow
          Deny from all
      &lt;/IfModule&gt;
  &lt;/Files&gt;
  #AIOWPS_PINGBACK_HTACCESS_RULES_END
  #AIOWPS_DEBUG_LOG_BLOCK_HTACCESS_RULES_START
  &lt;Files debug.log&gt;
      &lt;IfModule mod_authz_core.c&gt;
          Require all denied
      &lt;/IfModule&gt;
      &lt;IfModule !mod_authz_core.c&gt;
          Order deny,allow
          Deny from all
      &lt;/IfModule&gt;
  &lt;/Files&gt;
  #AIOWPS_DEBUG_LOG_BLOCK_HTACCESS_RULES_END
  #AIOWPS_DISABLE_INDEX_VIEWS_START
  Options -Indexes
  #AIOWPS_DISABLE_INDEX_VIEWS_END
  #AIOWPS_DISABLE_TRACE_TRACK_START
  RewriteEngine On
  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  RewriteRule .* - [F]
  #AIOWPS_DISABLE_TRACE_TRACK_END
  #AIOWPS_FORBID_PROXY_COMMENTS_START
  RewriteCond %{REQUEST_METHOD} ^POST
  RewriteCond %{HTTP:VIA} !^$ [OR]
  RewriteCond %{HTTP:FORWARDED} !^$ [OR]
  RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR]
  RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [OR]
  RewriteCond %{HTTP:X_FORWARDED_HOST} !^$ [OR]
  RewriteCond %{HTTP:PROXY_CONNECTION} !^$ [OR]
  RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [OR]
  RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR]
  RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$
  RewriteRule wp-comments-post\.php - [F]
  #AIOWPS_FORBID_PROXY_COMMENTS_END
  #AIOWPS_ENABLE_BRUTE_FORCE_PREVENTION_START
  RewriteEngine On
  RewriteCond %{REQUEST_URI} (wp-admin|wp-login)
  RewriteCond %{QUERY_STRING} !(action\=postpass)
  RewriteCond %{HTTP_COOKIE} !aiowps_secret= [NC]
  RewriteCond %{HTTP_COOKIE} !aiowps_cookie_test_kzs9w240bq= [NC]
  RewriteRule .* http://127.0.0.1 [L]
  #AIOWPS_ENABLE_BRUTE_FORCE_PREVENTION_END
  #AIOWPS_BLOCK_SPAMBOTS_START
  &lt;IfModule mod_rewrite.c&gt;
      RewriteCond %{REQUEST_METHOD} POST
      RewriteCond %{REQUEST_URI} ^(.*)?wp-comments-post\.php(.*)$
      RewriteCond %{HTTP_REFERER} !^http(s)?://abc\.com [NC,OR]
      RewriteCond %{HTTP_USER_AGENT} ^$
      RewriteRule .* http://127.0.0.1 [L]
  &lt;/IfModule&gt;
  #AIOWPS_BLOCK_SPAMBOTS_END
  # END All In One WP Security
  
  # BEGIN W3TC Browser Cache
  &lt;IfModule mod_deflate.c&gt;
      &lt;IfModule mod_headers.c&gt;
          Header append Vary User-Agent env=!dont-vary
      &lt;/IfModule&gt;
      AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
      &lt;IfModule mod_mime.c&gt;
  # DEFLATE by extension
          AddOutputFilter DEFLATE js css htm html xml
      &lt;/IfModule&gt;
  &lt;/IfModule&gt;
  # END W3TC Browser Cache
  # BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteBase /
      RewriteRule ^index\.php$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  
  # add a trailing slash to /wp-admin
  RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
  
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^ - [L]
  RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
  RewriteRule ^(.*\.php)$ $1 [L]
  RewriteRule . index.php [L]
  
  # END WordPress
  </code></pre>