• Resolved Pandasonic2

    (@pandasonic2)


    Redirect of wp-login.php to preferred page doesn’t work
    It redirects to a 404 page with errors
    Only works redirect of wp-admin directory

    I looked at database and in option table I’ve these two records (option name)
    whl_redirect_admin
    whl_page

    In option value the destination page.

    No value for wp-login.php

    • This topic was modified 4 years, 5 months ago by Pandasonic2.
    • This topic was modified 4 years, 5 months ago by Pandasonic2.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author NicolasKulka

    (@nicolaskulka)

    permalinks, htaccess ?

    Thread Starter Pandasonic2

    (@pandasonic2)

    permalinks:
    /%category%/%postname%/

    Plugin Author NicolasKulka

    (@nicolaskulka)

    Thread Starter Pandasonic2

    (@pandasonic2)

    I’m trying in local where is a very simple HTAccess (the standard htaccess of WordPress) but wp-login.php still redirects to 404 page (with errors)

    Thread Starter Pandasonic2

    (@pandasonic2)

    This is local htaccess

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /miolocal/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ./miolocal/index.php [L]
    </IfModule>

    Plugin Author NicolasKulka

    (@nicolaskulka)

    it’s ok.

    Other problem, conflict plugin or another thing

    Fresh install of WP 5.4.2 here.
    Single site deployment.
    No plugins other than WPS Hide Login v1.5.6.
    Standard plain permalink.
    Un-modified .htaccess file.
    Browsing to /wp-admin/ sends a HTTP 302 and changes to the configured preferred page.
    Browsing to /wp-login.php sends a HTTP 301 and changes to https://domain/-/-/-/-/-/-/-/-/-/-/

    ==> access.log <==
    x.x.x.x – – [02/Jul/2020:10:29:13 -0400] “GET /news/wp-admin/ HTTP/2.0” 302 0 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15”
    x.x.x.x – – [02/Jul/2020:10:29:13 -0400] “GET /news/?1 HTTP/2.0” 200 5974 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15”

    x.x.x.x – – [02/Jul/2020:10:29:28 -0400] “GET /news/wp-login.php HTTP/2.0” 301 0 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15”

    ==> error.log <==
    2020/07/02 10:29:28 [error] 129045#0: *4697 “/path/to/html/-/-/-/-/-/-/-/-/-/-/index.html” is not found (2: No such file or directory), client: x.x.x.x, server: domain, request: “GET /-/-/-/-/-/-/-/-/-/-/ HTTP/2.0”, host: “domain”

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Redirect of wp-login.php to preferred page doesn’t work’ is closed to new replies.