hquest
Forum Replies Created
-
Forum: Plugins
In reply to: [WPS Hide Login] Redirects to 404 PageIn short, this rewrite rule tells your Apache server if the requested (%REQUESTED_FILENAME) file (-f) or folder (-d) does not exists (!), then “sends the user to our index.php page”.
A nice hack to cover wrongdoings of people trying to open random pages/folders that do not exist, but this “fix” does not apply to other servers (nginx or IIS) since it is a workaround for Apache only and doesn’t change the fact the code is incorrect.
- This reply was modified 5 years, 11 months ago by hquest.
Forum: Plugins
In reply to: [WPS Hide Login] Redirect of wp-login.php to preferred page doesn’t workFresh 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”