WordPress wp-admin-Weiterleitung zu http://127.0.0.1/

Lesezeit: 5 Minuten

Milaps Benutzeravatar
Milap

Ich habe dieses Problem: Wenn ich versuche, mich bei meinem WP-Dashboard (wp-admin) anzumelden, wird auf 127.0.0.1 umgeleitet.

Wenn ich tippe websitename.com/wp-admin Es wird „Verbindung nicht möglich“ angezeigt.

Kann jemand helfen?

Mein .htaccess Datei im Stammverzeichnis meiner Website:

# BEGIN All In One WP Security
#AIOWPS_BLOCK_WP_FILE_ACCESS_START
<Files license.txt>
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
    </IfModule>
</Files>
<Files wp-config-sample.php>
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
    </IfModule>
</Files>
<Files readme.html>
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
    </IfModule>
</Files>
#AIOWPS_BLOCK_WP_FILE_ACCESS_END
#AIOWPS_BASIC_HTACCESS_RULES_START
<Files .htaccess>
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
    </IfModule>
</Files>
ServerSignature Off
LimitRequestBody 10240000
<Files wp-config.php>
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
    </IfModule>
</Files>
#AIOWPS_BASIC_HTACCESS_RULES_END
#AIOWPS_PINGBACK_HTACCESS_RULES_START
<Files xmlrpc.php>
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
    </IfModule>
</Files>
#AIOWPS_PINGBACK_HTACCESS_RULES_END
#AIOWPS_DEBUG_LOG_BLOCK_HTACCESS_RULES_START
<Files debug.log>
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
    </IfModule>
</Files>
#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
<IfModule mod_rewrite.c>
    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]
</IfModule>
#AIOWPS_BLOCK_SPAMBOTS_END
# END All In One WP Security

# BEGIN W3TC Browser Cache
<IfModule mod_deflate.c>
    <IfModule mod_headers.c>
        Header append Vary User-Agent env=!dont-vary
    </IfModule>
    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
    <IfModule mod_mime.c>
# DEFLATE by extension
        AddOutputFilter DEFLATE js css htm html xml
    </IfModule>
</IfModule>
# END W3TC Browser Cache
# 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>

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

Diese Zeile ist für die Entwicklung auf Ihrem eigenen Computer gedacht: RewriteRule .* http://127.0.0.1 [L]

Ersetzen Sie die IP durch Ihre Domain.

Anscheinend verwenden Sie das All-In-One-WP-Security-Plugin und sind nun zu einer öffentlichen Domain migriert.

Erwägen Sie, die Einstellungen des Plugins zu aktualisieren.

Fügen Sie diese beiden Zeilen zu Ihrem hinzu wp-config.phpWo „example.com“ ist der korrekte Standort Ihrer Website.

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

Benutzeravatar von iKED
iKED

So beheben Sie dieses Problem:

  1. Melden Sie sich bei phpmyadmin an
  2. Gehen Sie zu WordPress => wp_option
  3. Bearbeiten Optionswert für Optionsname Seiten-URL Und heim um den Standort zu korrigieren IMG

Bei websitename.com/wp-admin wird „Verbindung konnte nicht hergestellt werden“ angezeigt.

Bitte überprüfen Sie die Theme-Einstellungen Ihrer Website, um das WordPress-Versions-Meta-Tag von Ihrer Website zu entfernen.

Benutzeravatar von Sandipan Mondal
Sandipan Mondal

Ihr Problem wird mit diesem Code gelöst. Ich gebe Garantie. Vielen Dank für viel Spaß beim Codieren.

add_filter( ‘init’, “set_cookie_func” );

Funktion set_cookie_func(){

$secure = ( ‘https’ === parse_url( wp_login_url(), PHP_URL_SCHEME ) ); setcookie( TEST_COOKIE, ‘WP Cookie check’, 0, ‘/nextcore-media-support/’, COOKIE_DOMAIN, $secure ); setcookie( ‘LETMEIN’, ‘OK’, 0, “https://stackoverflow.com/”, COOKIE_DOMAIN, $secure );

if ( SITECOOKIEPATH != COOKIEPATH ){

setcookie( TEST_COOKIE, ‘WP Cookie check’, 0, ‘/nextcore-media-support/’, COOKIE_DOMAIN, $secure ); setcookie( ‘LETMEIN’, ‘OK’, 0, “https://stackoverflow.com/”, COOKIE_DOMAIN, $secure );

}

}

1451140cookie-checkWordPress wp-admin-Weiterleitung zu http://127.0.0.1/

This website is using cookies to improve the user-friendliness. You agree by using the website further.

Privacy policy